Commit 521f4090 authored by Rafaël Carré's avatar Rafaël Carré

contrib: detect mingw-w64 (as opposed to mingw.org)

parent c507541a
...@@ -147,6 +147,12 @@ endif ...@@ -147,6 +147,12 @@ endif
endif endif
ifdef HAVE_WIN32
ifneq ($(shell $(CC) $(CFLAGS) -E -dM -include _mingw.h - < /dev/null | grep -E __MINGW64_VERSION_MAJOR),)
HAVE_MINGW_W64 := 1
endif
endif
cppcheck = $(shell $(CC) $(CFLAGS) -E -dM - < /dev/null | grep -E $(1)) cppcheck = $(shell $(CC) $(CFLAGS) -E -dM - < /dev/null | grep -E $(1))
EXTRA_CFLAGS += -I$(PREFIX)/include EXTRA_CFLAGS += -I$(PREFIX)/include
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment