summaryrefslogtreecommitdiffstats
path: root/qmake/Makefile.unix.win32
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2018-08-01 08:42:45 +0200
committerKai Koehne <kai.koehne@qt.io>2018-08-02 07:10:00 +0000
commit780dc2291bc0e114bab8b9ccd8706708f6b47270 (patch)
tree5b7d31b567afe2a29e0efdb8e1cd788f6cca5860 /qmake/Makefile.unix.win32
parentc5af04cf8aa7bf2fbeaaf2a40f169fe8c17239f1 (diff)
Fix builds with some MinGW distributions
Some distributions do not define MINGW_HAS_SECURE_API globally, resulting in methods like wgetenv_s not being declared in the headers. This is probably to keep compatibility with Windows XP. Anyhow, we don't support Windows XP anymore, so we can safely add the define. Note that this is not necessary for the mingw-builds distro, which is the only one we test and support. Anyhow, I don't see any risk in adding these for other distributions. Diff was provided by Philippe Dunski in the bug report. Task-number: QTBUG-67443 Change-Id: I3a64b11541fe95e527ed44bbf8ad94469d457d3d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'qmake/Makefile.unix.win32')
-rw-r--r--qmake/Makefile.unix.win322
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/Makefile.unix.win32 b/qmake/Makefile.unix.win32
index bfcad35357..48efd6f030 100644
--- a/qmake/Makefile.unix.win32
+++ b/qmake/Makefile.unix.win32
@@ -1,5 +1,5 @@
EXEEXT = .exe
-EXTRA_CXXFLAGS = -DUNICODE
+EXTRA_CXXFLAGS = -DUNICODE -DMINGW_HAS_SECURE_API=1
EXTRA_LFLAGS = -static -s -lole32 -luuid -ladvapi32 -lkernel32 -lnetapi32
QTOBJS = \
qfilesystemengine_win.o \