Declarative: Add define _CRT_SECURE_NO_WARNINGS for MSVC.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Mon, 7 Nov 2011 13:44:39 +0000 (14:44 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 8 Nov 2011 12:49:28 +0000 (13:49 +0100)
Silence warnings about usage of strcmp(), etc.
Using wrapper is not an option here for performance reasons.

Change-Id: Ia444a637080c910b8a9a888f422e65c812ba546c
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>

src/declarative/declarative.pro
src/qtquick1/qtquick1.pro

index 60b5648..31d1e19 100644 (file)
@@ -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
index 65010fe..e06914f 100644 (file)
@@ -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