mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
testegl: move up pi specific macros
We need to define __VCCOREVER__ and disable redundant-decls before including the egl.h from the pi.
This commit is contained in:
parent
0b9bdbf224
commit
7a964087d0
1 changed files with 9 additions and 9 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue