]> granicus.if.org Git - postgresql/commitdiff
Prevent double macro definition of WIN32.
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 17 Jan 2014 16:49:44 +0000 (11:49 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 17 Jan 2014 16:49:44 +0000 (11:49 -0500)
David Rowley.

src/include/c.h

index 774a0a1549765c58e1bbebdcd35c14d9ccbdbca0..30b8f51cb8a87f2df9ceb6fb7fd0832f66c68a9e 100644 (file)
@@ -58,7 +58,7 @@
  * but _WIN32 is the compiler pre-defined macro. So make sure we define
  * WIN32 whenever _WIN32 is set, to facilitate standalone building.
  */
-#if defined(_WIN32)
+#if defined(_WIN32) && !defined(WIN32)
 #define WIN32
 #endif