mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-25 01:54:17 +00:00
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:
parent
9205bcdedb
commit
8fd840166b
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@
|
||||||
#ifndef GL_GLEXT_PROTOTYPES
|
#ifndef GL_GLEXT_PROTOTYPES
|
||||||
#define GL_GLEXT_PROTOTYPES 1
|
#define GL_GLEXT_PROTOTYPES 1
|
||||||
#endif
|
#endif
|
||||||
# if __APPLE__
|
# ifdef __APPLE__
|
||||||
# include <OpenGLES/ES2/gl.h>
|
# include <OpenGLES/ES2/gl.h>
|
||||||
# include <OpenGLES/ES2/glext.h>
|
# include <OpenGLES/ES2/glext.h>
|
||||||
# else
|
# else
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
/* OpenGL for desktop systems */
|
/* OpenGL for desktop systems */
|
||||||
#if GST_GL_HAVE_OPENGL
|
#if GST_GL_HAVE_OPENGL
|
||||||
# if __APPLE__
|
# ifdef __APPLE__
|
||||||
# include <OpenGL/OpenGL.h>
|
# include <OpenGL/OpenGL.h>
|
||||||
# include <OpenGL/gl.h>
|
# include <OpenGL/gl.h>
|
||||||
# include <OpenGL/glu.h>
|
# include <OpenGL/glu.h>
|
||||||
|
|
Loading…
Reference in a new issue