gl: use #ifdef instead of #if for __APPLE__
authorJulien Isorce <julien.isorce@collabora.co.uk>
Wed, 23 Apr 2014 12:30:27 +0000 (13:30 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:37 +0000 (19:31 +0000)
warning: "__APPLE__" is not defined [-Wundef]

with gcc version 4.7.2 20120731 (prerelease)
    (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08)

gst-libs/gst/gl/gstglapi.h

index 8605710232a4b569102117221c3f0dd7feb12168..01caecb60b3a45e0ce60ebd0d508307fff7f3df1 100644 (file)
@@ -54,7 +54,7 @@
 #ifndef GL_GLEXT_PROTOTYPES
 #define GL_GLEXT_PROTOTYPES 1
 #endif
-# if __APPLE__
+# ifdef __APPLE__
 #  include <OpenGLES/ES2/gl.h>
 #  include <OpenGLES/ES2/glext.h>
 # else
@@ -68,7 +68,7 @@
 
 /* OpenGL for desktop systems */
 #if GST_GL_HAVE_OPENGL
-# if __APPLE__
+# ifdef __APPLE__
 #  include <OpenGL/OpenGL.h>
 #  include <OpenGL/gl.h>
 #  include <OpenGL/glu.h>