]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix some #defines for Windows
authorMikko Rasa <tdb@tdb.fi>
Fri, 16 Sep 2016 22:36:54 +0000 (01:36 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 16 Sep 2016 22:36:54 +0000 (01:36 +0300)
source/ambientocclusion.cpp
source/capsule.cpp
source/cylinder.cpp
source/extension.cpp
source/sphere.cpp

index cf530dc3ce389fcd6650fd60f82966df055ef354..f1e722af5896ddf6754e991acb28fbbb5bc65449 100644 (file)
@@ -1,3 +1,4 @@
+#define _USE_MATH_DEFINES
 #include <cmath>
 #include "ambientocclusion.h"
 #include "blend.h"
index f00f6ca2dc146bb661adf5b03697b880e0d81824..2576f40d99eb66aeda40cf400a2e872654b0a99b 100644 (file)
@@ -1,3 +1,4 @@
+#define _USE_MATH_DEFINES
 #include <cmath>
 #include "capsule.h"
 #include "primitivebuilder.h"
index 5ea99723e92793e5fdae052ce7df98fa7c5a84e0..901a0f4b43cf057872a752960e30678a2a980b24 100644 (file)
@@ -1,3 +1,4 @@
+#define _USE_MATH_DEFINES
 #include <cmath>
 #include "cylinder.h"
 #include "primitivebuilder.h"
index bceab7ad964e1e3e68fe44bb174b76d8b992fd5b..8512046f28465092d02aa948ac0e153987ddedfc 100644 (file)
@@ -2,7 +2,7 @@
 #include <cstdlib>
 #if defined(__ANDROID__)
 #include <EGL/egl.h>
-#elif !defined(WIN32) && !defined(__APPLE__)
+#elif !defined(_WIN32) && !defined(__APPLE__)
 #define GLX_GLXEXT_PROTOTYPES
 #include <GL/glx.h>
 #endif
index 0b48ee40529030e8c0f5ca4a7b41afbba6cd0ca7..dd27fad40e28cc1608ad9699b121d1c4af0f0ffb 100644 (file)
@@ -1,3 +1,4 @@
+#define _USE_MATH_DEFINES
 #include <cmath>
 #include <vector>
 #include "primitivebuilder.h"