Commit ee244f66d07107a29fc762735d9750521bd45cf0

Authored by Perry Werneck
1 parent 53ef7bcb

Fixing RHEL 7 builds.

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
src/pw3270/private.h
... ... @@ -43,10 +43,10 @@
43 43  
44 44 #if ! GLIB_CHECK_VERSION(2,44,0)
45 45  
46   - G_GNUC_INTERNAL void pw3270_autoptr_cleanup_generic_gfree(void *p);
47   -
48 46 #define g_autofree __attribute__((cleanup(pw3270_autoptr_cleanup_generic_gfree)))
49 47  
  48 + LIB3270_EXPORT void pw3270_autoptr_cleanup_generic_gfree(void *p);
  49 +
50 50 #endif // ! GLIB(2,44,0)
51 51  
52 52  
... ...
src/pw3270/tools.c
... ... @@ -339,7 +339,7 @@ LIB3270_EXPORT void pw3270_set_action_state(GtkAction *action, gboolean on)
339 339 #if ! GLIB_CHECK_VERSION(2,44,0)
340 340  
341 341 // Reference: https://github.com/ImageMagick/glib/blob/master/glib/glib-autocleanups.h
342   - void pw3270_autoptr_cleanup_generic_gfree(void *p)
  342 + LIB3270_EXPORT void pw3270_autoptr_cleanup_generic_gfree(void *p)
343 343 {
344 344 void **pp = (void**)p;
345 345 g_free (*pp);
... ...