Blind attempt at fixing the non-MSVC Windows builds
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 22 Feb 2013 14:51:15 +0000 (11:51 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 22 Feb 2013 14:51:15 +0000 (11:51 -0300)
Apparently, they need -DBUILDING_DLL for the Assert() declarations to
work correctly.

src/makefiles/Makefile.cygwin
src/makefiles/Makefile.win32

index 052ce22ddbf0f2a85ce9530ae251eebb0e22910f..0a0680c74cc6a469f7c1735a3b06b69b8c10e7cd 100644 (file)
@@ -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
index dbeff298d848ded7d3b29b4d38f4e7906f1f85f0..1aae9e95df1f0f380e4275d1772132ebde486cc3 100644 (file)
@@ -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