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





On Mar 28, 2021, at 8:28 AM, John Ralls <jralls ceridwen us> wrote:



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.

Scratch that, gtk+-2 is no longer maintained, plus it's already been reported and fixed, 
https://gitlab.gnome.org/GNOME/gtk/-/commit/5f104c98836ad1a950717fcf705b6d4cd880e6ba.

I'll be doing the annual moduleset update in the next week or so and will upgrade gtk+ to 2.24.33, the final 
release that has that commit.

Regards,
John Ralls



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