Commit 3352d19b1c0b1f9e97c8d2d6c1f917b4d2fb88fd
1 parent
62e67d83
Exists in
master
and in
1 other branch
Fixing debian builds.
Showing
2 changed files
with
12 additions
and
6 deletions
Show diff stats
src/dialogs/tools.c
| ... | ... | @@ -95,3 +95,14 @@ |
| 95 | 95 | |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | + #if ! GLIB_CHECK_VERSION(2,44,0) | |
| 99 | + | |
| 100 | + // Reference: https://github.com/ImageMagick/glib/blob/master/glib/glib-autocleanups.h | |
| 101 | + void v3270_autoptr_cleanup_generic_gfree(void *p) | |
| 102 | + { | |
| 103 | + void **pp = (void**)p; | |
| 104 | + g_free (*pp); | |
| 105 | + } | |
| 106 | + | |
| 107 | + #endif // ! GLIB(2,44,0) | |
| 108 | + | ... | ... |
src/include/internals.h
| ... | ... | @@ -39,12 +39,7 @@ |
| 39 | 39 | |
| 40 | 40 | #if ! GLIB_CHECK_VERSION(2,44,0) |
| 41 | 41 | |
| 42 | - // Reference: https://github.com/ImageMagick/glib/blob/master/glib/glib-autocleanups.h | |
| 43 | - static inline void v3270_autoptr_cleanup_generic_gfree(void *p) | |
| 44 | - { | |
| 45 | - void **pp = (void**)p; | |
| 46 | - g_free (*pp); | |
| 47 | - } | |
| 42 | + G_GNUC_INTERNAL void v3270_autoptr_cleanup_generic_gfree(void *p); | |
| 48 | 43 | |
| 49 | 44 | #define g_autofree __attribute__((cleanup(v3270_autoptr_cleanup_generic_gfree))) |
| 50 | 45 | ... | ... |