From: Neal Gompa Date: Sun, 11 Dec 2016 17:36:17 +0000 (-0500) Subject: Fix OpenGL and OpenAL header paths for macOS X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=90a133faa774ea0ef7dfff16efbe83b57bccf122;p=lugaru.git Fix OpenGL and OpenAL header paths for macOS --- 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;