Commit ba8e4938045b4ef8e6fb62f1abbd01372e3faa72

Authored by Perry Werneck
1 parent 9f35da78
Exists in master and in 1 other branch develop

Trying to fix RHEL 7 builds

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
src/include/v3270.h
... ... @@ -42,7 +42,6 @@
42 42 LIB3270_EXPORT void v3270_autoptr_cleanup_generic_gfree(void *p);
43 43  
44 44 #define g_autofree __attribute__((cleanup(v3270_autoptr_cleanup_generic_gfree)))
45   - #define g_autoptr(TypeName) _GLIB_CLEANUP(_GLIB_AUTOPTR_FUNC_NAME(TypeName)) _GLIB_AUTOPTR_TYPENAME(TypeName)
46 45  
47 46 static inline void v3270_autoptr_cleanup_GError(GError **error) {
48 47 if(*error) {
... ... @@ -65,7 +64,7 @@
65 64 }
66 65  
67 66 #define V3270_AUTOPTR_FUNC_NAME(TypeName) v3270_autoptr_cleanup_##TypeName
68   - #define v3270_autoptr(TypeName) TypeName * __attribute__ ((__cleanup__(V3270_AUTOPTR_FUNC_NAME(TypeName))))
  67 + #define g_autoptr(TypeName) TypeName * __attribute__ ((__cleanup__(V3270_AUTOPTR_FUNC_NAME(TypeName))))
69 68  
70 69 #endif // ! GLIB(2,44,0)
71 70  
... ...