aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-12-14 15:59:34 +0100
committerLoïc Hoguin <[email protected]>2015-12-14 15:59:34 +0100
commitcf6b49b3d51804f0314ccebb35c4d1a3231e3adc (patch)
treeeb75568d41c36e977f07dc7e35bf8af4d6c707f4 /Makefile
parent9b6480e84467cacc4160d9772664c2ac27e87f78 (diff)
downloadesdl2-cf6b49b3d51804f0314ccebb35c4d1a3231e3adc.tar.gz
esdl2-cf6b49b3d51804f0314ccebb35c4d1a3231e3adc.tar.bz2
esdl2-cf6b49b3d51804f0314ccebb35c4d1a3231e3adc.zip
Include the sys/queue.h header for Windows
Windows/MSYS2 does not have this header available, so we need to include it in the repository. The new c_src/compat/ directory can in the future be used for cases like this.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fdb039a..12cc181 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,10 @@ LDLIBS += $(SDL2_LIBS) -lSDL2_image
include erlang.mk
+ifeq ($(PLATFORM),msys2)
+ CFLAGS += -I"$(C_SRC_DIR)/compat/"
+endif
+
bullet_engine:: all
erlc -o examples/bullet_engine examples/bullet_engine/*.erl
cd examples/bullet_engine && ./start.sh