From bbfe0a9f7563ea8ad868f83d7ce22322fae6cc4b Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 18 May 2018 10:38:33 +0200 Subject: testegl: move up pi specific macros We need to define __VCCOREVER__ and disable redundant-decls before including the egl.h from the pi. --- examples/egl/testegl.c | 18 +++++++++--------- 1 file 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 #include @@ -51,15 +60,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include -#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 #include -- cgit v1.2.1