Skip to content
Snippets Groups Projects
Commit 25eca1c3 authored by Ralph Giles's avatar Ralph Giles
Browse files

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.
parent 5280c718
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,9 @@ unsigned long GetHighResolutionTime(void); /* O time in usec*/ ...@@ -69,7 +69,9 @@ unsigned long GetHighResolutionTime(void); /* O time in usec*/
#if (defined(_WIN32) || defined(_WINCE)) #if (defined(_WIN32) || defined(_WINCE))
#include <windows.h> /* timer */ #include <windows.h> /* timer */
#if defined(_MSC_VER)
#pragma warning( disable : 4996 ) /* stop bitching about strcpy in TIC()*/ #pragma warning( disable : 4996 ) /* stop bitching about strcpy in TIC()*/
#endif
#else /* Linux or Mac*/ #else /* Linux or Mac*/
#include <sys/time.h> #include <sys/time.h>
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment