diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-05-18 10:38:33 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-09 01:31:31 +0200 |
commit | bbfe0a9f7563ea8ad868f83d7ce22322fae6cc4b (patch) | |
tree | 500ff37e48a02b18aea984ae5614174897c645fa | |
parent | bc83eaca552f730e89767ff86a494f1b1edb4b6f (diff) | |
download | gst-omx-bbfe0a9f7563ea8ad868f83d7ce22322fae6cc4b.tar.gz |
testegl: move up pi specific macros
We need to define __VCCOREVER__ and disable redundant-decls before
including the egl.h from the pi.
-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> |