From 90a133faa774ea0ef7dfff16efbe83b57bccf122 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 11 Dec 2016 12:36:17 -0500 Subject: [PATCH 1/1] Fix OpenGL and OpenAL header paths for macOS --- Source/Audio/openal_wrapper.hpp | 10 ++++++++-- Source/Graphic/gamegl.hpp | 12 +++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Source/Audio/openal_wrapper.hpp b/Source/Audio/openal_wrapper.hpp index cea4797..300bec2 100644 --- a/Source/Audio/openal_wrapper.hpp +++ b/Source/Audio/openal_wrapper.hpp @@ -24,8 +24,14 @@ along with Lugaru. If not, see . #include "MacCompatibility.hpp" #include "Math/Quaternions.hpp" -#include -#include +#ifdef __APPLE__ + #include + #include +#else + #include + #include +#endif + #include #include diff --git a/Source/Graphic/gamegl.hpp b/Source/Graphic/gamegl.hpp index 0b5f693..f9c6d2b 100644 --- a/Source/Graphic/gamegl.hpp +++ b/Source/Graphic/gamegl.hpp @@ -38,9 +38,15 @@ along with Lugaru. If not, see . #endif #define GL_GLEXT_PROTOTYPES 1 -#include -#include -#include +#ifdef __APPLE__ + #include + #include + #include +#else + #include + #include + #include +#endif using namespace std; -- 2.39.2