diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-02-22 11:51:15 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-02-22 11:51:15 -0300 |
commit | af0a4c5924061869ee3db391900ab745107c966f (patch) | |
tree | 564900001b16b86635410e9b386ed9db3939e757 /src | |
parent | 6da378dbc97f1b96bf5778a558e168a0dc405bce (diff) | |
download | postgresql-af0a4c5924061869ee3db391900ab745107c966f.tar.gz postgresql-af0a4c5924061869ee3db391900ab745107c966f.zip |
Blind attempt at fixing the non-MSVC Windows builds
Apparently, they need -DBUILDING_DLL for the Assert() declarations to
work correctly.
Diffstat (limited to 'src')
-rw-r--r-- | src/makefiles/Makefile.cygwin | 4 | ||||
-rw-r--r-- | src/makefiles/Makefile.win32 | 4 |
2 files changed, 8 insertions, 0 deletions
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 |