mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
examples: fix build on macOS with gtk+-quartz-3.0
gdk_quartz_window_get_nsview is not declared in the header file now: error: implicit declaration of function 'gdk_quartz_window_get_nsview' is invalid in C99 [-Werror,-Wimplicit-function-declaration] fixes #979 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2116>
This commit is contained in:
parent
05ee80f104
commit
28091342da
4 changed files with 16 additions and 0 deletions
|
@ -11,6 +11,10 @@
|
|||
#include <gdk/gdkwin32.h>
|
||||
#elif defined (GDK_WINDOWING_QUARTZ)
|
||||
#include <gdk/gdkquartz.h>
|
||||
#if GTK_CHECK_VERSION(3, 24, 10)
|
||||
#include <AppKit/AppKit.h>
|
||||
NSView *gdk_quartz_window_get_nsview (GdkWindow * window);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Structure to contain all our information, so we can pass it around */
|
||||
|
|
|
@ -33,6 +33,10 @@
|
|||
#include <gdk/gdkwin32.h>
|
||||
#elif defined (GDK_WINDOWING_QUARTZ)
|
||||
#include <gdk/gdkquartz.h>
|
||||
#if GTK_CHECK_VERSION(3, 24, 10)
|
||||
#include <AppKit/AppKit.h>
|
||||
NSView *gdk_quartz_window_get_nsview (GdkWindow * window);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
|
|
@ -35,6 +35,10 @@
|
|||
#endif
|
||||
#if GST_GL_HAVE_WINDOW_COCOA && defined(GDK_WINDOWING_QUARTZ)
|
||||
#include <gdk/gdkquartz.h>
|
||||
#if GTK_CHECK_VERSION(3, 24, 10)
|
||||
#include <AppKit/AppKit.h>
|
||||
NSView *gdk_quartz_window_get_nsview (GdkWindow * window);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
gboolean
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
#include <gdk/gdkwin32.h>
|
||||
#elif defined (GDK_WINDOWING_QUARTZ)
|
||||
#include <gdk/gdkquartz.h>
|
||||
#if GTK_CHECK_VERSION(3, 24, 10)
|
||||
#include <AppKit/AppKit.h>
|
||||
NSView *gdk_quartz_window_get_nsview (GdkWindow * window);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <gst/video/videooverlay.h>
|
||||
|
|
Loading…
Reference in a new issue