summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjaanttil <janne.anttila@digia.com>2011-11-02 07:24:10 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-01 12:48:17 (GMT)
commita0a970447d63e5c9afdb55d179d671d9c24e9061 (patch)
treede552355a24145b46a114541858bdb1de11064ef /src
parentd6947bcbed97889d7d56d400f81eb1691a3f18e1 (diff)
downloadQt-a0a970447d63e5c9afdb55d179d671d9c24e9061.zip
Qt-a0a970447d63e5c9afdb55d179d671d9c24e9061.tar.gz
Qt-a0a970447d63e5c9afdb55d179d671d9c24e9061.tar.bz2
Fixed MSVC compiler warning for zlib when compiling on WEC7.
WEC7 mkspecs define _CRT_SECURE_NO_DEPRECATE globally. libpng redefined the same macro without checking if it is already defined. Added #ifdef guard to zlib when defining _CRT_SECURE_NO_DEPRECATE. Task-number: QTBUG-22512 Change-Id: I477b24b7bc0ebb4cd8a619b11668eceb0f5064d4 Reviewed-by: aavit <qt_aavit@ovi.com>
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/zlib/gzguts.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/3rdparty/zlib/gzguts.h b/src/3rdparty/zlib/gzguts.h
index c752b57..9f9640b 100644
--- a/src/3rdparty/zlib/gzguts.h
+++ b/src/3rdparty/zlib/gzguts.h
@@ -4,8 +4,12 @@
*/
#ifdef _MSC_VER
-# define _CRT_SECURE_NO_DEPRECATE
-# define _CRT_NONSTDC_NO_DEPRECATE
+# ifndef _CRT_SECURE_NO_DEPRECATE
+# define _CRT_SECURE_NO_DEPRECATE
+# endif
+# ifndef _CRT_NONSTDC_NO_DEPRECATE
+# define _CRT_NONSTDC_NO_DEPRECATE
+# endif
#endif
#ifdef _LARGEFILE64_SOURCE