fix msys/mingw portability

This commit is contained in:
Nicolas Sauzede 2018-04-11 20:54:52 +02:00
parent e92adf34e8
commit 78c999b54e
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ else
MV = mv -f
endif
_SYS=$(shell uname -o)
ifeq ($(_SYS),Msys)
CFLAGS += -posix # Msys2 / Mingw64 seems to need this for printf / scanf %a support. Sigh..
endif
# Link.
$(BIN): $(SRCS:.c=.o)