From f1556c1660c005853329afda14cb3d9387e71845 Mon Sep 17 00:00:00 2001 From: Maciej Wolny Date: Mon, 19 Nov 2018 15:09:25 +0000 Subject: [PATCH] gst-gl: Remove duplicate declarations This causes 'redefinition of typedef ...' errors on GCC 4.5.3 --- gst-libs/gst/gl/gbm/gstglwindow_gbm_egl.h | 3 +-- gst-libs/gst/gl/gstgldebug.h | 2 -- gst-libs/gst/gl/gstglfuncs.h | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/gst-libs/gst/gl/gbm/gstglwindow_gbm_egl.h b/gst-libs/gst/gl/gbm/gstglwindow_gbm_egl.h index 3d132a24b1..e89af2f537 100644 --- a/gst-libs/gst/gl/gbm/gstglwindow_gbm_egl.h +++ b/gst-libs/gst/gl/gbm/gstglwindow_gbm_egl.h @@ -24,6 +24,7 @@ #include #include #include +#include G_BEGIN_DECLS @@ -37,8 +38,6 @@ G_BEGIN_DECLS typedef struct _GstGLWindowGBMEGL GstGLWindowGBMEGL; typedef struct _GstGLWindowGBMEGLClass GstGLWindowGBMEGLClass; -typedef struct _GstGLDisplayGBM GstGLDisplayGBM; - struct _GstGLWindowGBMEGL { /*< private >*/ GstGLWindow parent; diff --git a/gst-libs/gst/gl/gstgldebug.h b/gst-libs/gst/gl/gstgldebug.h index fc73d1bcaa..8b54827c4c 100644 --- a/gst-libs/gst/gl/gstgldebug.h +++ b/gst-libs/gst/gl/gstgldebug.h @@ -25,8 +25,6 @@ G_BEGIN_DECLS -typedef struct _GstGLAsyncDebug GstGLAsyncDebug; - typedef gchar * (*GstGLAsyncDebugLogGetMessage) (gpointer user_data); /** diff --git a/gst-libs/gst/gl/gstglfuncs.h b/gst-libs/gst/gl/gstglfuncs.h index 805abcf3df..e3bf8746d1 100644 --- a/gst-libs/gst/gl/gstglfuncs.h +++ b/gst-libs/gst/gl/gstglfuncs.h @@ -93,11 +93,11 @@ G_BEGIN_DECLS ret (GSTGLAPI *name) args; #define GST_GL_EXT_END() -typedef struct _GstGLFuncs +struct _GstGLFuncs { #include gpointer padding[GST_PADDING_LARGE*6]; -} GstGLFuncs; +}; #undef GST_GL_EXT_BEGIN #undef GST_GL_EXT_FUNCTION