]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Makefile windows conditionnal
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 14 Mar 2019 21:12:10 +0000 (22:12 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 14 Mar 2019 21:12:10 +0000 (22:12 +0100)
Makefile

index 8cdf23148096d27175c4725f81b8a5b4ce0ba5b2..09067f120fe0e7714c456dcf3472a64ce2a11692 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,10 @@ CFLAGS += -DVMBENCH
 LDFLAGS += -lbsd
 endif
 
+ifeq (${BUILD_ON_WINDOWS}, 1)
+CFLAGS += -DBUILD_ON_WINDOWS -D_XOPEN_SOURCE=700
+endif
+
 # add directories
 CFLAGS+=-DGWPLUG_DIR=\"${GWPLUG_DIR}\"