Skip to content

Commit af0a4c5

Browse files
committed
Blind attempt at fixing the non-MSVC Windows builds
Apparently, they need -DBUILDING_DLL for the Assert() declarations to work correctly.
1 parent 6da378d commit af0a4c5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/makefiles/Makefile.cygwin

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ endif
2525
endif
2626
endif
2727

28+
ifneq (,$(findstring src/common,$(subdir)))
29+
override CPPFLAGS+= -DBUILDING_DLL
30+
endif
31+
2832
ifneq (,$(findstring timezone,$(subdir)))
2933
override CPPFLAGS+= -DBUILDING_DLL
3034
endif

src/makefiles/Makefile.win32

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ endif
2323
endif
2424
endif
2525

26+
ifneq (,$(findstring src/common,$(subdir)))
27+
override CPPFLAGS+= -DBUILDING_DLL
28+
endif
29+
2630
ifneq (,$(findstring timezone,$(subdir)))
2731
override CPPFLAGS+= -DBUILDING_DLL
2832
endif

0 commit comments

Comments
 (0)