[gtk/macos-ci: 3/3] macos: supply NSPasteboardType when necessary




commit 7c9bc7a2049f985a206a8da8250e3d958368bb09
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 5 13:54:07 2021 -0800

    macos: supply NSPasteboardType when necessary
    
    On older macOS systems, we might need to provide our own typedef
    for the NSPasteboardType. It is just a NSString pointer anyway.

 gdk/macos/gdkmacosclipboard-private.h | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gdk/macos/gdkmacosclipboard-private.h b/gdk/macos/gdkmacosclipboard-private.h
index ab37d707a5..01a562c2b8 100644
--- a/gdk/macos/gdkmacosclipboard-private.h
+++ b/gdk/macos/gdkmacosclipboard-private.h
@@ -27,6 +27,10 @@
 
 G_BEGIN_DECLS
 
+#ifndef AVAILABLE_MAC_OS_X_VERSION_10_13_AND_LATER
+typedef NSString *NSPasteboardType;
+#endif
+
 #define GDK_TYPE_MACOS_CLIPBOARD (_gdk_macos_clipboard_get_type())
 
 G_DECLARE_FINAL_TYPE (GdkMacosClipboard, _gdk_macos_clipboard, GDK, MACOS_CLIPBOARD, GdkClipboard)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]