diff --git a/src/pw3270/private.h b/src/pw3270/private.h index dcfd896..b1807a8 100644 --- a/src/pw3270/private.h +++ b/src/pw3270/private.h @@ -43,10 +43,10 @@ #if ! GLIB_CHECK_VERSION(2,44,0) - G_GNUC_INTERNAL void pw3270_autoptr_cleanup_generic_gfree(void *p); - #define g_autofree __attribute__((cleanup(pw3270_autoptr_cleanup_generic_gfree))) + LIB3270_EXPORT void pw3270_autoptr_cleanup_generic_gfree(void *p); + #endif // ! GLIB(2,44,0) diff --git a/src/pw3270/tools.c b/src/pw3270/tools.c index 4930684..00fcc81 100644 --- a/src/pw3270/tools.c +++ b/src/pw3270/tools.c @@ -339,7 +339,7 @@ LIB3270_EXPORT void pw3270_set_action_state(GtkAction *action, gboolean on) #if ! GLIB_CHECK_VERSION(2,44,0) // Reference: https://github.com/ImageMagick/glib/blob/master/glib/glib-autocleanups.h - void pw3270_autoptr_cleanup_generic_gfree(void *p) + LIB3270_EXPORT void pw3270_autoptr_cleanup_generic_gfree(void *p) { void **pp = (void**)p; g_free (*pp); -- libgit2 0.21.2