From ba8e4938045b4ef8e6fb62f1abbd01372e3faa72 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 13 Sep 2019 17:19:46 -0300 Subject: [PATCH] Trying to fix RHEL 7 builds --- src/include/v3270.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/include/v3270.h b/src/include/v3270.h index 3634bde..2d01029 100644 --- a/src/include/v3270.h +++ b/src/include/v3270.h @@ -42,7 +42,6 @@ LIB3270_EXPORT void v3270_autoptr_cleanup_generic_gfree(void *p); #define g_autofree __attribute__((cleanup(v3270_autoptr_cleanup_generic_gfree))) - #define g_autoptr(TypeName) _GLIB_CLEANUP(_GLIB_AUTOPTR_FUNC_NAME(TypeName)) _GLIB_AUTOPTR_TYPENAME(TypeName) static inline void v3270_autoptr_cleanup_GError(GError **error) { if(*error) { @@ -65,7 +64,7 @@ } #define V3270_AUTOPTR_FUNC_NAME(TypeName) v3270_autoptr_cleanup_##TypeName - #define v3270_autoptr(TypeName) TypeName * __attribute__ ((__cleanup__(V3270_AUTOPTR_FUNC_NAME(TypeName)))) + #define g_autoptr(TypeName) TypeName * __attribute__ ((__cleanup__(V3270_AUTOPTR_FUNC_NAME(TypeName)))) #endif // ! GLIB(2,44,0) -- libgit2 0.21.2