diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2018-05-03 09:47:05 -0700 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2018-05-03 09:47:05 -0700 |
commit | 93923ea245e396cdb4e36c3bc2f8bbe1357383d4 (patch) | |
tree | cd81c8ff24943d97ece26b770281e98954a0fbbe | |
parent | 7e239dc7fe71eac16487e0699700e2fddccf0fc1 (diff) | |
download | qtlocation-mapboxgl-93923ea245e396cdb4e36c3bc2f8bbe1357383d4.tar.gz |
[ios, macos] added an if else for includes
-rw-r--r-- | platform/darwin/app/LimeGreenStyleLayer.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/platform/darwin/app/LimeGreenStyleLayer.m b/platform/darwin/app/LimeGreenStyleLayer.m index b74abcebd8..a9728234f7 100644 --- a/platform/darwin/app/LimeGreenStyleLayer.m +++ b/platform/darwin/app/LimeGreenStyleLayer.m @@ -1,7 +1,12 @@ #import "LimeGreenStyleLayer.h" -#include <OpenGLES/ES2/gl.h> -#include <OpenGLES/ES2/glext.h> +#if TARGET_OS_IPHONE + #include <OpenGLES/ES2/gl.h> + #include <OpenGLES/ES2/glext.h> +#elif TARGET_OS_OSX + #include <OpenGL/gl.h> + #include <OpenGL/glext.h> +#endif @implementation LimeGreenStyleLayer { GLuint _program; |