From 3475d4b17fbb3926f7d7ad8a56e10d05eb4efba9 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 16 Oct 2019 17:00:36 -0300 Subject: [PATCH] Fixing windows build. --- src/core/array.c | 7 ++++++- src/include/array.h | 6 +----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/core/array.c b/src/core/array.c index 2c0c11e..4a7fee2 100644 --- a/src/core/array.c +++ b/src/core/array.c @@ -61,7 +61,7 @@ void lib3270_string_array_free(LIB3270_STRING_ARRAY *array) } } -LIB3270_INTERNAL void lib3270_string_array_append(LIB3270_STRING_ARRAY *array, const char *str) +void lib3270_string_array_append(LIB3270_STRING_ARRAY *array, const char *str) { if(array->str) { @@ -77,3 +77,8 @@ LIB3270_INTERNAL void lib3270_string_array_append(LIB3270_STRING_ARRAY *array, c } +void lib3270_autoptr_cleanup_LIB3270_STRING_ARRAY(LIB3270_STRING_ARRAY **ptr) +{ + lib3270_string_array_free(*ptr); +} + diff --git a/src/include/array.h b/src/include/array.h index 8473c33..309ce52 100644 --- a/src/include/array.h +++ b/src/include/array.h @@ -47,10 +47,6 @@ LIB3270_INTERNAL LIB3270_STRING_ARRAY * lib3270_string_array_new(void); LIB3270_INTERNAL void lib3270_string_array_free(LIB3270_STRING_ARRAY *object); LIB3270_INTERNAL void lib3270_string_array_append(LIB3270_STRING_ARRAY *object, const char *str); - - inline void lib3270_autoptr_cleanup_LIB3270_STRING_ARRAY(LIB3270_STRING_ARRAY **ptr) - { - lib3270_string_array_free(*ptr); - } + LIB3270_INTERNAL void lib3270_autoptr_cleanup_LIB3270_STRING_ARRAY(LIB3270_STRING_ARRAY **ptr); #endif // LIB3270_ARRAY_H_INCLUDED -- libgit2 0.21.2