From 1d9f3894fceb21393fb7ee9ed4ca15788f8e4f54 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 17 Sep 2016 01:36:54 +0300 Subject: [PATCH] Fix some #defines for Windows --- source/ambientocclusion.cpp | 1 + source/capsule.cpp | 1 + source/cylinder.cpp | 1 + source/extension.cpp | 2 +- source/sphere.cpp | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) 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" -- 2.43.0