From: Mikko Rasa Date: Fri, 16 Sep 2016 22:36:54 +0000 (+0300) Subject: Fix some #defines for Windows X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1d9f3894fceb21393fb7ee9ed4ca15788f8e4f54;p=libs%2Fgl.git Fix some #defines for Windows --- diff --git a/source/ambientocclusion.cpp b/source/ambientocclusion.cpp index cf530dc3..f1e722af 100644 --- a/source/ambientocclusion.cpp +++ b/source/ambientocclusion.cpp @@ -1,3 +1,4 @@ +#define _USE_MATH_DEFINES #include #include "ambientocclusion.h" #include "blend.h" diff --git a/source/capsule.cpp b/source/capsule.cpp index f00f6ca2..2576f40d 100644 --- a/source/capsule.cpp +++ b/source/capsule.cpp @@ -1,3 +1,4 @@ +#define _USE_MATH_DEFINES #include #include "capsule.h" #include "primitivebuilder.h" diff --git a/source/cylinder.cpp b/source/cylinder.cpp index 5ea99723..901a0f4b 100644 --- a/source/cylinder.cpp +++ b/source/cylinder.cpp @@ -1,3 +1,4 @@ +#define _USE_MATH_DEFINES #include #include "cylinder.h" #include "primitivebuilder.h" diff --git a/source/extension.cpp b/source/extension.cpp index bceab7ad..8512046f 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -2,7 +2,7 @@ #include #if defined(__ANDROID__) #include -#elif !defined(WIN32) && !defined(__APPLE__) +#elif !defined(_WIN32) && !defined(__APPLE__) #define GLX_GLXEXT_PROTOTYPES #include #endif diff --git a/source/sphere.cpp b/source/sphere.cpp index 0b48ee40..dd27fad4 100644 --- a/source/sphere.cpp +++ b/source/sphere.cpp @@ -1,3 +1,4 @@ +#define _USE_MATH_DEFINES #include #include #include "primitivebuilder.h"