[setup PATCH] Work with gcc-3.3.1

Max Bowsher maxb@ukf.net
Mon Aug 18 21:18:00 GMT 2003


+2003-08-18  Max Bowsher  <maxb@ukf.net>
+
+ * win32.h: Undefine NOMINMAX before defining it, as libstdc++-v3 3.3.1
+ defines NOMINMAX itself.

Index: win32.h
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/win32.h,v
retrieving revision 2.9
diff -u -p -r2.9 win32.h
--- win32.h 23 Jun 2003 20:49:00 -0000 2.9
+++ win32.h 18 Aug 2003 21:14:02 -0000
@@ -32,6 +32,9 @@
 /* We want a minimum IE version of 3 */
 #define _WIN32_IE 0x0300
 /* libstdc++-v3 _really_ dislikes min & max defined as macros. */
+/* As of gcc 3.3.1, it defines NOMINMAX itself, so #undef first,
+ * to avoid a redefinition error */
+#undef NOMINMAX
 #define NOMINMAX
 #include <windows.h>
 #if HAVE_ALLOCA_H



More information about the Cygwin-apps mailing list