summaryrefslogtreecommitdiff
path: root/Makefile.mgw
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.mgw')
-rw-r--r--Makefile.mgw5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.mgw b/Makefile.mgw
index 762b05b7110..6f53efd55d8 100644
--- a/Makefile.mgw
+++ b/Makefile.mgw
@@ -58,8 +58,9 @@
.PHONY : all libgl clean realclean
CPU ?= pentium
-
-CFLAGS = -Wall -W -pedantic
+
+# when -std=c99 mingw will not define WIN32
+CFLAGS = -Wall -W -Werror -pedantic -std=c99 -DWIN32
CFLAGS += -O2 -ffast-math -mcpu=$(CPU)
export CFLAGS