diff --git a/silk/debug.h b/silk/debug.h index a71f1e7644f0b9846bc4f83109ddbb764b6a488e..e7ece55b06c508745be22fc9eebea29e11545fe9 100644 --- a/silk/debug.h +++ b/silk/debug.h @@ -28,10 +28,6 @@ POSSIBILITY OF SUCH DAMAGE. #ifndef SILK_DEBUG_H #define SILK_DEBUG_H -#ifdef _WIN32 -#define _CRT_SECURE_NO_DEPRECATE 1 -#endif - #include "typedef.h" #include <stdio.h> /* file writing */ #include <string.h> /* strcpy, strcmp */ @@ -69,9 +65,6 @@ unsigned long GetHighResolutionTime(void); /* O time in usec*/ #if (defined(_WIN32) || defined(_WINCE)) #include <windows.h> /* timer */ -#if defined(_MSC_VER) -#pragma warning( disable : 4996 ) /* stop bitching about strcpy in TIC()*/ -#endif #else /* Linux or Mac*/ #include <sys/time.h> #endif diff --git a/win32/VS2010/opus.vcxproj b/win32/VS2010/opus.vcxproj index 607ff1f255adbbc5478e727bf0384f95221a8399..dae2288cd1aa271561789e0d3e4cab7d994b0027 100644 --- a/win32/VS2010/opus.vcxproj +++ b/win32/VS2010/opus.vcxproj @@ -87,6 +87,7 @@ <WarningLevel>Level3</WarningLevel> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> <Optimization>Disabled</Optimization> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <TargetMachine>MachineX86</TargetMachine> @@ -116,6 +117,7 @@ <WarningLevel>Level3</WarningLevel> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> <Optimization>Disabled</Optimization> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -144,6 +146,7 @@ <WarningLevel>Level3</WarningLevel> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> <IntrinsicFunctions>true</IntrinsicFunctions> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <TargetMachine>MachineX86</TargetMachine> @@ -175,6 +178,7 @@ <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <WarningLevel>Level3</WarningLevel> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <GenerateDebugInformation>false</GenerateDebugInformation> @@ -232,4 +236,4 @@ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> -</Project> \ No newline at end of file +</Project> diff --git a/win32/VS2010/test_opus_decode.vcxproj b/win32/VS2010/test_opus_decode.vcxproj index 19d69731f7ec443312ca84970ef1d330dbba72bd..34523319da1047a0a7724b1bb30e25b57259b795 100644 --- a/win32/VS2010/test_opus_decode.vcxproj +++ b/win32/VS2010/test_opus_decode.vcxproj @@ -90,6 +90,7 @@ <PreprocessorDefinitions>HAVE_CONFIG_H;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>..\..\silk;..\..\celt;..\;..\..\include;</AdditionalIncludeDirectories> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Console</SubSystem> @@ -106,6 +107,7 @@ <PreprocessorDefinitions>HAVE_CONFIG_H;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>..\..\silk;..\..\celt;..\;..\..\include;</AdditionalIncludeDirectories> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Console</SubSystem> @@ -124,6 +126,7 @@ <PreprocessorDefinitions>HAVE_CONFIG_H;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <AdditionalIncludeDirectories>..\..\silk;..\..\celt;..\;..\..\include;</AdditionalIncludeDirectories> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Console</SubSystem> @@ -143,6 +146,7 @@ <PreprocessorDefinitions>HAVE_CONFIG_H;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <AdditionalIncludeDirectories>..\..\silk;..\..\celt;..\;..\..\include;</AdditionalIncludeDirectories> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Console</SubSystem> @@ -154,4 +158,4 @@ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> -</Project> \ No newline at end of file +</Project> diff --git a/win32/VS2010/test_opus_encode.vcxproj b/win32/VS2010/test_opus_encode.vcxproj index 65ba35a4dce326490661d95a4e95bc040d049058..d2ede27e0b669f623edbacb817710da4e77fd101 100644 --- a/win32/VS2010/test_opus_encode.vcxproj +++ b/win32/VS2010/test_opus_encode.vcxproj @@ -90,6 +90,7 @@ <PreprocessorDefinitions>HAVE_CONFIG_H;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>..\..\silk;..\..\celt;..\;..\..\include;</AdditionalIncludeDirectories> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Console</SubSystem> @@ -106,6 +107,7 @@ <PreprocessorDefinitions>HAVE_CONFIG_H;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>..\..\silk;..\..\celt;..\;..\..\include;</AdditionalIncludeDirectories> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Console</SubSystem> @@ -124,6 +126,7 @@ <PreprocessorDefinitions>HAVE_CONFIG_H;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <AdditionalIncludeDirectories>..\..\silk;..\..\celt;..\;..\..\include;</AdditionalIncludeDirectories> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Console</SubSystem> @@ -143,6 +146,7 @@ <PreprocessorDefinitions>HAVE_CONFIG_H;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <AdditionalIncludeDirectories>..\..\silk;..\..\celt;..\;..\..\include;</AdditionalIncludeDirectories> + <DisableSpecificWarnings>4996</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Console</SubSystem> @@ -154,4 +158,4 @@ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> -</Project> \ No newline at end of file +</Project> diff --git a/win32/config.h b/win32/config.h index 81819b29ab30a6cc5e8c3c1ba7f338f61e27f94f..6cf0cadbc290384a6a2bcc82169e6b9e77a95f97 100644 --- a/win32/config.h +++ b/win32/config.h @@ -37,11 +37,6 @@ POSSIBILITY OF SUCH DAMAGE. #define OPUS_BUILD 1 -/* Get rid of the CELT VS compile warnings */ -#if 1 -#pragma warning(disable : 4996)/* This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. */ -#endif - /* Enable SSE functions, if compiled with SSE/SSE2 (note that AMD64 implies SSE2) */ #if defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1)) #define __SSE__ 1