Re: [gtk-osx-users] gtkclipboard-quartz.c:112:27: error: implicit declaration of function.





On Mar 28, 2021, at 3:47 AM, Pascal <p p14 orange fr> wrote:

Hello,

I've got this error:

/opt/gtk+-2.24.32/gtk/gtkclipboard-quartz.c:112:27: error: 
     implicit declaration of function
     'gdk_quartz_pasteboard_type_to_atom_libgtk_only' is invalid in C99
     [-Werror,-Wimplicit-function-declaration]
 selection_data.target = gdk_quartz_pasteboard_type_to_atom_libgtk_only (type);

I've changed:
--- ./gtk/gtkclipboard-quartz.c.0     2021-03-28 12:11:54.000000000 +0200
+++ ./gtk/gtkclipboard-quartz.c       2021-03-28 12:25:48.000000000 +0200
@@ -33,6 +33,7 @@
#include "gtktextbuffer.h"
#include "gtkquartz.h"
#include "gtkalias.h"
+#include "gdkquartz.h"

enum {
  OWNER_CHANGE,

Take care that "gtk+-2.24.32/gdk/quartz/gdkquartz.h" is not visible by current include paths.

Pascal,

That's Gtk itself, not Gtk-OSX. Raise an issue on Gtk's Gitlab.

Regards,
John Ralls



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