diff --git a/include/wx/gtk/private/gtk2-compat.h b/include/wx/gtk/private/gtk2-compat.h index f3d7e252e7..d9c76861bb 100644 --- a/include/wx/gtk/private/gtk2-compat.h +++ b/include/wx/gtk/private/gtk2-compat.h @@ -51,6 +51,7 @@ static inline gpointer wx_g_object_ref_sink(gpointer object) gtk_object_sink(GTK_OBJECT(object)); return object; } +#undef g_object_ref_sink #define g_object_ref_sink wx_g_object_ref_sink // ----------------------------------------------------------------------------