]> granicus.if.org Git - postgresql/commitdiff
Remove unnecessary definition of _WIN64 in libpq/win32.mak.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Apr 2016 14:52:58 +0000 (10:52 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Apr 2016 14:52:58 +0000 (10:52 -0400)
In commit b0e40d189325dc7a54d2546245e766f8c47a7c8d, I should have just
removed the /D switch defining WIN64.  The reason the code worked before
is that all Windows64 compilers automatically predefine _WIN64.  Perhaps
at one time we had code that depended on WIN64 being defined, but it's
long gone, and we should not encourage any reappearance.  Per discussion
with Christian Ullrich.

src/interfaces/libpq/win32.mak

index 1d8c84d5a2842f7d04342522ef27f2c434822fd2..88c36570352cd151babe29dddb4ec8a1b5ad5463 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=/Wp64 /GS
 ADD_SECLIB=bufferoverflowU.lib
 !MESSAGE Building the Win64 static library...
 !MESSAGE