780dc2291b
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>
22 lines
845 B
Makefile
22 lines
845 B
Makefile
EXEEXT = .exe
|
|
EXTRA_CXXFLAGS = -DUNICODE -DMINGW_HAS_SECURE_API=1
|
|
EXTRA_LFLAGS = -static -s -lole32 -luuid -ladvapi32 -lkernel32 -lnetapi32
|
|
QTOBJS = \
|
|
qfilesystemengine_win.o \
|
|
qfilesystemiterator_win.o \
|
|
qfsfileengine_win.o \
|
|
qlocale_win.o \
|
|
qsettings_win.o \
|
|
qoperatingsystemversion_win.o \
|
|
qsystemlibrary.o \
|
|
registry.o
|
|
QTSRCS = \
|
|
$(SOURCE_PATH)/src/corelib/global/qoperatingsystemversion_win.cpp \
|
|
$(SOURCE_PATH)/src/corelib/io/qfilesystemengine_win.cpp \
|
|
$(SOURCE_PATH)/src/corelib/io/qfilesystemiterator_win.cpp \
|
|
$(SOURCE_PATH)/src/corelib/io/qfsfileengine_win.cpp \
|
|
$(SOURCE_PATH)/src/corelib/io/qsettings_win.cpp \
|
|
$(SOURCE_PATH)/src/corelib/tools/qlocale_win.cpp \
|
|
$(SOURCE_PATH)/src/corelib/plugin/qsystemlibrary.cpp \
|
|
$(SOURCE_PATH)/qmake/generators/win32/registry.cpp
|