summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@collabora.co.uk>2014-04-23 13:30:27 +0100
committerJulien Isorce <julien.isorce@collabora.co.uk>2014-04-23 21:09:58 +0100
commit8fd840166ba2285d988c8bea584a46ce38ab7fdc (patch)
treef282c990b19da82389641af4aee8c0751e5cf138
parent9205bcdedb4dc5915c1eb06e1e8b7503fb93095f (diff)
gl: use #ifdef instead of #if for __APPLE__
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)
-rw-r--r--gst-libs/gst/gl/gstglapi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/gstglapi.h b/gst-libs/gst/gl/gstglapi.h
index 860571023..01caecb60 100644
--- a/gst-libs/gst/gl/gstglapi.h
+++ b/gst-libs/gst/gl/gstglapi.h
@@ -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>