mirror of
https://github.com/xiph/opus.git
synced 2025-05-27 21:59:12 +00:00
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.
This commit is contained in:
parent
5280c71883
commit
25eca1c33e
1 changed files with 2 additions and 0 deletions
|
@ -69,7 +69,9 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue