From 5f924f5085fb99e7d47ceeae9f2837e04e253bb0 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 21 Nov 2010 12:12:27 -0800 Subject: [PATCH] get rid of secure SCL warnings --- include/mitsuba/core/platform.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/mitsuba/core/platform.h b/include/mitsuba/core/platform.h index 857fa1af..7ce701b3 100644 --- a/include/mitsuba/core/platform.h +++ b/include/mitsuba/core/platform.h @@ -27,6 +27,9 @@ #ifdef _SECURE_SCL_THROWS #undef _SECURE_SCL_THROWS #endif + #ifdef _SCL_SECURE_NO_WARNINGS + #undef _SCL_SECURE_NO_WARNINGS + #endif #ifdef _HAS_ITERATOR_DEBUGGING #undef _HAS_ITERATOR_DEBUGGING #endif @@ -34,6 +37,7 @@ #define _SECURE_SCL_THROWS 0 #define _HAS_ITERATOR_DEBUGGING 0 + #define _SCL_SECURE_NO_WARNINGS 0 #define __MSVC__ #define __WINDOWS__ @@ -49,6 +53,7 @@ #pragma warning(disable : 4251) // 'field' : class 'A' needs to have dll-interface to be used by clients of class 'B' #pragma warning(disable : 4800) // 'type' : forcing value to bool 'true' or 'false' (performance warning) + #pragma warning(disable : 4996) // Secure SCL warnings #include // Does not exist in MSVC. Use a replacement #if _MSC_VER >= 1400 #include