diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-05-18 10:38:33 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2019-04-12 14:29:19 +0530 |
commit | 7a964087d0431e806b92fca7e7c3456a48517bde (patch) | |
tree | 4827f050cb4273d7ab7c1d7ff04bd775b16a7c4f /examples/egl | |
parent | 0b9bdbf224abadf56e8d0392807d6b078f1f0b04 (diff) |
testegl: move up pi specific macros
We need to define __VCCOREVER__ and disable redundant-decls before
including the egl.h from the pi.
Diffstat (limited to 'examples/egl')
-rw-r--r-- | examples/egl/testegl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/egl/testegl.c b/examples/egl/testegl.c index 1ee03d4..4c952ca 100644 --- a/examples/egl/testegl.c +++ b/examples/egl/testegl.c @@ -39,6 +39,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "config.h" #endif +#if defined (USE_OMX_TARGET_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> #include <GLES2/gl2.h> @@ -51,15 +60,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <gst/gst.h> -#if defined (USE_OMX_TARGET_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 - #define GST_USE_UNSTABLE_API #include <gst/gl/gl.h> #include <gst/gl/egl/gstgldisplay_egl.h> |