Commit 1543b6a1 authored by Rafaël Carré's avatar Rafaël Carré

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

(cherry picked from commit 521f40906c11615b9da6fabb19870724b91769fb)
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent e1f6de11
......@@ -148,6 +148,12 @@ 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))
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