shithub: opus

Download patch

ref: 25eca1c33e240c39e5af4a055c5f00200bf359b4
parent: 5280c71883e4a2d072d6f69ab7c9b6dc7ace66dc
author: Ralph Giles <[email protected]>
date: Mon Jul 15 12:04:14 EDT 2013

Conditionalize #pragma warn for MSVC.

This warning disable was conditional on _WIN32, which mingw
also defines, resulting in a warning about the unknown pragma
on gcc. Instead make it depend on something only the Visual
Studio compiler defines.

--- a/silk/debug.h
+++ b/silk/debug.h
@@ -69,7 +69,9 @@
 
 #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