]> granicus.if.org Git - postgresql/commitdiff
Fix previous MinGW fix.
authorAndrew Gierth <rhodiumtoad@postgresql.org>
Sat, 16 Feb 2019 15:21:10 +0000 (15:21 +0000)
committerAndrew Gierth <rhodiumtoad@postgresql.org>
Sat, 16 Feb 2019 15:23:02 +0000 (15:23 +0000)
Definitions required for MinGW need to be outside #if _MSC_VER. Oops.

src/include/port/win32_port.h

index 1438082723f5d03ded4f0f79cc3b44c3cafa63ac..f4841fb3975d49749629c83dc20a17e064d48270 100644 (file)
@@ -510,6 +510,11 @@ typedef unsigned short mode_t;
 #define isnan(x) _isnan(x)
 #endif
 
+/* Pulled from Makefile.port in MinGW */
+#define DLSUFFIX ".dll"
+
+#endif                                                 /* _MSC_VER */
+
 #if (defined(_MSC_VER) && (_MSC_VER < 1900)) || \
        defined(__MINGW32__) || defined(__MINGW64__)
 /*
@@ -529,9 +534,4 @@ typedef unsigned short mode_t;
 #define HAVE_BUGGY_STRTOF 1
 #endif
 
-/* Pulled from Makefile.port in MinGW */
-#define DLSUFFIX ".dll"
-
-#endif                                                 /* _MSC_VER */
-
 #endif                                                 /* PG_WIN32_PORT_H */