Fixed warnings in Windows

--HG--
branch : develop
This commit is contained in:
Valentina Zhuravska 2015-10-10 04:49:10 +03:00
parent b3a7063a9b
commit b46e384ca7
2 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,7 @@
#define strcasecmp(s,t) stricmp(s,t)
#endif
#if defined(_WIN32)
#if defined(_WIN32)&&!defined(strcasecmp)
#define strcasecmp(s,t) _stricmp(s,t)
#endif
@ -50,7 +50,9 @@
#ifdef _WIN32
#undef M_PI
#define M_PI 3.14159265358979323846
#if defined(Q_CC_MSVC)
#pragma warning(disable : 4800)
#endif // Q_CC_MSVC
#endif
#ifndef M_PI

View File

@ -41,7 +41,9 @@
#ifdef _WIN32
#undef M_PI
#define M_PI 3.14159265358979323846
#if defined(Q_CC_MSVC)
#pragma warning(disable : 4800)
#endif // Q_CC_MSVC
#endif
#ifndef M_PI