From: Michael Jerris Date: Sun, 20 Nov 2005 16:49:14 +0000 (+0000) Subject: Suppress MSVC 8 warnings about crt functions. X-Git-Tag: v1.0-beta1~3649 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8b409696167e2bcbc86b4dc1171826d9d5f8f19;p=thirdparty%2Ffreeswitch.git Suppress MSVC 8 warnings about crt functions. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@62 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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