From: Alvaro Herrera Date: Fri, 22 Feb 2013 14:51:15 +0000 (-0300) Subject: Blind attempt at fixing the non-MSVC Windows builds X-Git-Tag: REL9_3_BETA1~314 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af0a4c5924061869ee3db391900ab745107c966f;p=thirdparty%2Fpostgresql.git Blind attempt at fixing the non-MSVC Windows builds Apparently, they need -DBUILDING_DLL for the Assert() declarations to work correctly. --- diff --git a/src/makefiles/Makefile.cygwin b/src/makefiles/Makefile.cygwin index 052ce22ddbf..0a0680c74cc 100644 --- a/src/makefiles/Makefile.cygwin +++ b/src/makefiles/Makefile.cygwin @@ -25,6 +25,10 @@ endif endif endif +ifneq (,$(findstring src/common,$(subdir))) +override CPPFLAGS+= -DBUILDING_DLL +endif + ifneq (,$(findstring timezone,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif diff --git a/src/makefiles/Makefile.win32 b/src/makefiles/Makefile.win32 index dbeff298d84..1aae9e95df1 100644 --- a/src/makefiles/Makefile.win32 +++ b/src/makefiles/Makefile.win32 @@ -23,6 +23,10 @@ endif endif endif +ifneq (,$(findstring src/common,$(subdir))) +override CPPFLAGS+= -DBUILDING_DLL +endif + ifneq (,$(findstring timezone,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif