Skip to content

Commit e3ec4c0

Browse files
committed
Define __MINGW32__ on MINGW32 via an explicit compile time option
This should have been defined by the MINGW32 environment, no?
1 parent 1587ede commit e3ec4c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ flags_static:
9191
echo $(filter-out boxes.o,$(ALL_OBJ)) > $(OUT_DIR)/modules.txt
9292

9393
flags_win32:
94-
$(eval CFLAGS := -Os -s -m32 -I. -I$(SRC_DIR) -Wall -W $(CFLAGS_ADDTL))
94+
$(eval CFLAGS := -Os -s -m32 -D__MINGW32__ -I. -I$(SRC_DIR) -Wall -W $(CFLAGS_ADDTL))
9595
$(eval LDFLAGS := $(LDFLAGS) -s -m32 $(LDFLAGS_ADDTL))
9696
$(eval BOXES_EXECUTABLE_NAME := boxes.exe)
9797
# TODO Here, one can manually remove files for testing. In the end, the line should be generated as per the commented one below.

0 commit comments

Comments
 (0)