macos: Fix gdk_quartz_drag_context_get_dragging_info_libgtk_only symbol export
authorChristoph Reiter <creiter@src.gnome.org>
Tue, 27 Feb 2018 18:53:43 +0000 (19:53 +0100)
committerChristoph Reiter <creiter@src.gnome.org>
Tue, 27 Feb 2018 18:53:43 +0000 (19:53 +0100)
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.

gdk/quartz/GdkQuartzNSWindow.c
gdk/quartz/GdkQuartzView.c
gdk/quartz/gdkdnd-quartz.c

index 4d68048ce8d5445e06cf07790b598ca21f53c796..c66fea73c85b9ccf265e4bdf17b807804696ec1d 100644 (file)
@@ -16,6 +16,7 @@
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "config.h"
 #import "GdkQuartzNSWindow.h"
 #include "gdkquartzwindow.h"
 #include "gdkdnd-quartz.h"
index 97c60d051cf0bb1926fb6f572da8fa8f5b722d80..7237363f75e4ed1c59c3de16f7bf1124de8ff0b6 100644 (file)
@@ -17,6 +17,7 @@
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "config.h"
 #import "GdkQuartzView.h"
 #include "gdkquartzwindow.h"
 #include "gdkprivate-quartz.h"
index 15b6fed3191c97cc3df461d530cb14f4ccbbac28..b9928acd443d770e9c12e6c0cf1da30ad13c0bbd 100644 (file)
@@ -16,6 +16,7 @@
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "config.h"
 #include "gdkdnd.h"
 #include "gdkquartzdnd.h"
 #include "gdkprivate-quartz.h"