PATCH - Last of the Mingw warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have submitted this like 50 times before but this will clean the last of the mingw warnings when
building on windows/msys/cygwin. This warning may/will? never go away as they have MAX_PATH
defined in stdlib.h and windef.h with #ifdef protection for older apps so when building WINE
nearly every source file gets this warning. I have asked, bitched and begged for them to clean
this and as you can see I am still submitting the patch here. After this we only get
warrnings/errors on real problems.

Changlog: Cleanup warning when building on Mingw

Index: windef.h
===================================================================
RCS file: /home/wine/wine/include/windef.h,v
retrieving revision 1.72
diff -u -r1.72 windef.h
--- windef.h	6 Sep 2002 20:40:42 -0000	1.72
+++ windef.h	12 Sep 2002 17:05:21 -0000
@@ -150,6 +150,10 @@
 #endif
 #endif  /* NOMINMAX */
 
+#ifdef MAX_PATH /* Work-around for Mingw */ 
+#undef MAX_PATH
+#endif /* MAX_PATH */
+
 #define MAX_PATH        260
 #define HFILE_ERROR     ((HFILE)-1)
 


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux