From af0a4c5924061869ee3db391900ab745107c966f Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Fri, 22 Feb 2013 11:51:15 -0300 Subject: [PATCH] Blind attempt at fixing the non-MSVC Windows builds Apparently, they need -DBUILDING_DLL for the Assert() declarations to work correctly. --- src/makefiles/Makefile.cygwin | 4 ++++ src/makefiles/Makefile.win32 | 4 ++++ 2 files changed, 8 insertions(+) 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 -- 2.39.5