From f8b409696167e2bcbc86b4dc1171826d9d5f8f19 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 20 Nov 2005 16:49:14 +0000 Subject: [PATCH] Suppress MSVC 8 warnings about crt functions. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@62 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/include/switch.h b/src/include/switch.h index fed34cf994..acb0d6a5a6 100644 --- a/src/include/switch.h +++ b/src/include/switch.h @@ -35,6 +35,15 @@ extern "C" { #endif +#if (_MSC_VER >= 1400) // VC8+ +#ifndef _CRT_SECURE_NO_DEPRECATE +#define _CRT_SECURE_NO_DEPRECATE +#endif +#ifndef _CRT_NONSTDC_NO_DEPRECATE +#define _CRT_NONSTDC_NO_DEPRECATE +#endif +#endif // VC8+ + #include #include #include