]> granicus.if.org Git - postgresql/commitdiff
Fix two places that thought Windows64 is indicated by WIN64 macro.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Apr 2016 23:37:04 +0000 (19:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Apr 2016 23:37:04 +0000 (19:37 -0400)
Everyplace else thinks it's _WIN64, so make these places fall in line.

The pg_regress.c usage is not going to result in any change in behavior,
only suppressing (or not) a compiler warning about downcasting HANDLEs.
So there seems no need for back-patching there.

The libpq/win32.mak usage might represent an actual bug, if anyone were
using this script to build for Windows64, which perhaps nobody is.
Given the lack of field complaints, no back-patch here either.

pg_regress.c problem found by Christian Ullrich, the other by me.

src/interfaces/libpq/win32.mak
src/test/regress/pg_regress.c

index 1b71ebd387072bb4f59aa27592fb9f7a8cbf54b5..1d8c84d5a2842f7d04342522ef27f2c434822fd2 100644 (file)
@@ -16,7 +16,7 @@ CPU=i386
 !MESSAGE Building the Win32 static library...
 !MESSAGE
 !ELSEIF ("$(CPU)" == "IA64")||("$(CPU)" == "AMD64")
-ADD_DEFINES=/D "WIN64" /Wp64 /GS
+ADD_DEFINES=/D "_WIN64" /Wp64 /GS
 ADD_SECLIB=bufferoverflowU.lib
 !MESSAGE Building the Win64 static library...
 !MESSAGE
index 167444591df41a4e50f70b89150bf36577af277b..2f6f56dd40fcee5cc2f78953e01211622e09a836 100644 (file)
@@ -2386,7 +2386,7 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
 
                postmaster_running = true;
 
-#ifdef WIN64
+#ifdef _WIN64
 /* need a series of two casts to convert HANDLE without compiler warning */
 #define ULONGPID(x) (unsigned long) (unsigned long long) (x)
 #else