Move WIN32_ONLY_COMPILER define from c.h to win32.h because it was being
authorBruce Momjian <[email protected]>
Tue, 3 Oct 2006 03:59:22 +0000 (03:59 +0000)
committerBruce Momjian <[email protected]>
Tue, 3 Oct 2006 03:59:22 +0000 (03:59 +0000)
defined too late.

src/include/c.h
src/include/port/win32.h

index 55da238dc1c12fe92fb56da9717aaf4517194e7d..f031dce9b1a5f2da695431505c4e5a44f6b56040 100644 (file)
 #include "postgres_ext.h"
 #include "pg_trace.h"
 
-#if defined(_MSC_VER) || defined(__BORLANDC__)
-#define        WIN32_ONLY_COMPILER
 #if defined(__BORLANDC__) || (_MSC_VER > 1400)
 #include <crtdefs.h>
 #endif
-#endif
 
 #include <stdio.h>
 #include <stdlib.h>
index d7ab022d1bb92dc0d8d491e6f14f092f4b3f9389..cce131f71efca5aa08e71e6d826b2575afc62a50 100644 (file)
@@ -1,5 +1,9 @@
 /* $PostgreSQL$ */
 
+#if defined(_MSC_VER) || defined(__BORLANDC__)
+#define        WIN32_ONLY_COMPILER
+#endif
+
 /* undefine and redefine after #include */
 #undef mkdir