(svn r3950) - Add directives to allow Visual Studio 2005 compilation. Backport of r3551 from trunk. 0.4.5
authorDarkvater
Sat, 18 Mar 2006 15:14:34 +0000
branch0.4.5
changeset 9920 4bbb9a5a48e7
parent 9919 725dc9cbdf13
child 9921 4d12b9de9752
(svn r3950) - Add directives to allow Visual Studio 2005 compilation. Backport of r3551 from trunk.
stdafx.h
--- a/stdafx.h	Sat Mar 18 15:13:35 2006 +0000
+++ b/stdafx.h	Sat Mar 18 15:14:34 2006 +0000
@@ -99,6 +99,12 @@
 #  pragma warning(disable: 4018) // 'expression' : signed/unsigned mismatch
 #  pragma warning(disable: 4305) // 'identifier' : truncation from 'type1' to 'type2'
 # endif /* _MSC_VER < 1300 */
+# if _MSC_VER >= 1400              // MSVC 2005 safety checks
+#  pragma warning(disable: 4996)   // 'strdup' was declared deprecated
+#  define _CRT_SECURE_NO_DEPRECATE // all deprecated 'unsafe string functions
+#  pragma comment(linker, "/NODEFAULTLIB:LIBC.LIB")
+                                   // allow linking to non-recompiled libs
+# endif /* _MSC_VER >= 1400 */
 
 # include <malloc.h> // alloca()
 # define NORETURN __declspec(noreturn)