Define __MINGW32__ on MINGW32 via an explicit compile time option

This should have been defined by the MINGW32 environment, no?
This commit is contained in:
Thomas Jensen
2023-12-29 15:13:40 +01:00
parent 1587ede620
commit e3ec4c06b5

View File

@ -91,7 +91,7 @@ flags_static:
echo $(filter-out boxes.o,$(ALL_OBJ)) > $(OUT_DIR)/modules.txt
flags_win32:
$(eval CFLAGS := -Os -s -m32 -I. -I$(SRC_DIR) -Wall -W $(CFLAGS_ADDTL))
$(eval CFLAGS := -Os -s -m32 -D__MINGW32__ -I. -I$(SRC_DIR) -Wall -W $(CFLAGS_ADDTL))
$(eval LDFLAGS := $(LDFLAGS) -s -m32 $(LDFLAGS_ADDTL))
$(eval BOXES_EXECUTABLE_NAME := boxes.exe)
# TODO Here, one can manually remove files for testing. In the end, the line should be generated as per the commented one below.