From: Christoph Reiter Date: Tue, 27 Feb 2018 18:53:43 +0000 (+0100) Subject: macos: Fix gdk_quartz_drag_context_get_dragging_info_libgtk_only symbol export X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~37^2~37^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5c0d242ea33ec1be60e6b2ad464dd9087692d7ab;p=gtk%2B3.0.git macos: Fix gdk_quartz_drag_context_get_dragging_info_libgtk_only symbol export The header got included without config.h being included first which resulted in the wrong _GDK_EXTERN macro being used. As a result some symbols weren't exported and starting a DnD action would crash in the linker. This patch adds config.h includes in all places where clang complained about _GDK_EXTERN redefinitions. See #32 for more info. --- diff --git a/gdk/quartz/GdkQuartzNSWindow.c b/gdk/quartz/GdkQuartzNSWindow.c index 4d68048ce8..c66fea73c8 100644 --- a/gdk/quartz/GdkQuartzNSWindow.c +++ b/gdk/quartz/GdkQuartzNSWindow.c @@ -16,6 +16,7 @@ * License along with this library. If not, see . */ +#include "config.h" #import "GdkQuartzNSWindow.h" #include "gdkquartzwindow.h" #include "gdkdnd-quartz.h" diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c index 97c60d051c..7237363f75 100644 --- a/gdk/quartz/GdkQuartzView.c +++ b/gdk/quartz/GdkQuartzView.c @@ -17,6 +17,7 @@ * License along with this library. If not, see . */ +#include "config.h" #import "GdkQuartzView.h" #include "gdkquartzwindow.h" #include "gdkprivate-quartz.h" diff --git a/gdk/quartz/gdkdnd-quartz.c b/gdk/quartz/gdkdnd-quartz.c index 15b6fed319..b9928acd44 100644 --- a/gdk/quartz/gdkdnd-quartz.c +++ b/gdk/quartz/gdkdnd-quartz.c @@ -16,6 +16,7 @@ * License along with this library. If not, see . */ +#include "config.h" #include "gdkdnd.h" #include "gdkquartzdnd.h" #include "gdkprivate-quartz.h"