From 33ff9a100d3820cba945f5f1de0925fc6c28eadd Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 3 Jul 2013 17:28:49 +1000 Subject: Make work with older compilers. --- win32/PlatWin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 3706c2bc0..e92ef943c 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1889,7 +1889,10 @@ static RECT RectFromMonitor(HMONITOR hMonitor) { } RECT rc = {0, 0, 0, 0}; if (::SystemParametersInfoA(SPI_GETWORKAREA, 0, &rc, 0) == 0) { - rc = {0, 0, 0, 0}; + rc.left = 0; + rc.top = 0; + rc.right = 0; + rc.bottom = 0; } return rc; } -- cgit v1.2.3