Ver código fonte

VS-2013 issue.

Michał W. Urbańczyk 12 anos atrás
pai
commit
7a90ead051
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      client/battle/CBattleInterface.cpp

+ 3 - 3
client/battle/CBattleInterface.cpp

@@ -34,11 +34,11 @@
 #include "../gui/CGuiHandler.h"
 #include "../CMT.h"
 
-#ifndef __GNUC__
-const double M_PI = 3.14159265358979323846;
-#else
+#if defined(_MSC_VER) && _MSC_VER >= 1800
 #define _USE_MATH_DEFINES
 #include <cmath>
+#else
+const double M_PI = 3.14159265358979323846;
 #endif
 #include "../../lib/UnlockGuard.h"