diff options
author | Julien Isorce <julien.isorce@collabora.co.uk> | 2014-03-19 13:48:10 +0000 |
---|---|---|
committer | Julien Isorce <julien.isorce@collabora.co.uk> | 2014-03-19 14:43:13 +0000 |
commit | fa4ce072ee11d0d13a4871d81d0966cac4c5ee3e (patch) | |
tree | 1ded23e560c7892f02a0bf1d1206f3be474b266b /gst-libs | |
parent | e870244e3934837816ebed5b8e8000dea81b3f08 (diff) | |
download | gstreamer-plugins-bad-fa4ce072ee11d0d13a4871d81d0966cac4c5ee3e.tar.gz |
gl: silence warnings building for RPI related to 'vcos_*'
Similar than 1190a79b199584cfc4dd62c474531c32cfbba425
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/gl/gstglapi.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/gstglapi.h b/gst-libs/gst/gl/gstglapi.h index 78951d146..0d8ae3c32 100644 --- a/gst-libs/gst/gl/gstglapi.h +++ b/gst-libs/gst/gl/gstglapi.h @@ -22,11 +22,27 @@ #define __GST_GL_API_H__ #include <gst/gl/gstglconfig.h> - #include <gst/gl/glprototypes/gstgl_compat.h> #if GST_GL_HAVE_PLATFORM_EGL + +#if defined (USE_EGL_RPI) && defined(__GNUC__) +#ifndef __VCCOREVER__ +#define __VCCOREVER__ 0x04000000 +#endif + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wredundant-decls" +#pragma GCC optimize ("gnu89-inline") +#endif + #include <EGL/egl.h> + +#if defined (USE_EGL_RPI) && defined(__GNUC__) +#pragma GCC reset_options +#pragma GCC diagnostic pop +#endif + #endif /* OpenGL 2.0 for Embedded Systems */ |