changeset 18930:d7ab6268e3ea

Some older MinGW versions have a broken INVALID_FILE_ATTRIBUTES, so hack around that for now.
author reimar
date Fri, 07 Jul 2006 11:22:24 +0000
parents 13fd66346cd5
children da91dc728556
files Gui/win32/gui.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/win32/gui.c	Fri Jul 07 11:20:06 2006 +0000
+++ b/Gui/win32/gui.c	Fri Jul 07 11:22:24 2006 +0000
@@ -41,6 +41,10 @@
 #include "wincfg.h"
 #include "dialogs.h"
 
+// HACK around bug in old mingw
+#undef INVALID_FILE_ATTRIBUTES
+#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
+
 #ifndef WM_XBUTTONDOWN
 # define WM_XBUTTONDOWN    0x020B
 # define WM_XBUTTONUP      0x020C