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)
This commit is contained in:
Julien Isorce 2014-04-23 13:30:27 +01:00 committed by Tim-Philipp Müller
parent 4372ba8999
commit bc52c7bb00

View 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>