From: Friedemann Kleint Date: Mon, 7 Nov 2011 13:44:39 +0000 (+0100) Subject: Declarative: Add define _CRT_SECURE_NO_WARNINGS for MSVC. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=b3f6633fb006f9f966e001e68ff0363e3862ddf6;p=konrad%2Fqtdeclarative.git Declarative: Add define _CRT_SECURE_NO_WARNINGS for MSVC. Silence warnings about usage of strcmp(), etc. Using wrapper is not an option here for performance reasons. Change-Id: Ia444a637080c910b8a9a888f422e65c812ba546c Reviewed-by: Chris Adams Reviewed-by: Glenn Watson --- diff --git a/src/declarative/declarative.pro b/src/declarative/declarative.pro index 60b5648..31d1e19 100644 --- a/src/declarative/declarative.pro +++ b/src/declarative/declarative.pro @@ -10,6 +10,7 @@ QT = core-private gui gui-private network sql v8-private DEFINES += QT_BUILD_DECLARATIVE_LIB QT_NO_URL_CAST_FROM_STRING QT_NO_INTEGER_EVENT_COORDINATES win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x66000000 +win32-msvc*:DEFINES *= _CRT_SECURE_NO_WARNINGS solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O2 unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui diff --git a/src/qtquick1/qtquick1.pro b/src/qtquick1/qtquick1.pro index 65010fe..e06914f 100644 --- a/src/qtquick1/qtquick1.pro +++ b/src/qtquick1/qtquick1.pro @@ -18,6 +18,8 @@ feature.path = $$[QT_INSTALL_DATA]/mkspecs/features feature.files = $$PWD/features/qtquick1.prf INSTALLS += feature +win32-msvc*:DEFINES *= _CRT_SECURE_NO_WARNINGS + symbian { DEFINES += QT_MAKEDLL CONFIG += epocallowdlldata