summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-02-05 09:28:06 +0000
committerpeter1138 <peter1138@openttd.org>2006-02-05 09:28:06 +0000
commitcf414c1864c8b0ceeb0368903eb1ed7393df36c1 (patch)
tree23360c308d4c57f90d9928dc03abc879eb2f6b94
parent7ffdde104f201d9aa113a2d1f5459036f4e87cf1 (diff)
downloadopenttd-cf414c1864c8b0ceeb0368903eb1ed7393df36c1.tar.xz
(svn r3551) Add directives to allow Visual Studio 2005 compilation.
-rw-r--r--stdafx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
index 6819bfb56..0f15a7b81 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -103,6 +103,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)