From af179b174e829cb0017d1ec3666c932964317e2e Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 15 Oct 2019 20:13:06 +0200 Subject: [PATCH 1/2] Fix definition of TL_API under GCC --- libtwolame/twolame.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libtwolame/twolame.h b/libtwolame/twolame.h index 6b3ee9d..0c52728 100644 --- a/libtwolame/twolame.h +++ b/libtwolame/twolame.h @@ -56,9 +56,9 @@ extern "C" { # endif # endif #else -# ifdef GNUC -# if GNUC >= 4 -# define TL_API attribute ((visibility("default"))) +# ifdef __GNUC__ +# if __GNUC__ >= 4 +# define TL_API __attribute__ ((visibility("default"))) # else # define TL_API # endif From ac342ccf6ba198663452045bf292df2b197dfac9 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 15 Oct 2019 20:22:34 +0200 Subject: [PATCH 2/2] Add missing TL_API --- libtwolame/twolame.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtwolame/twolame.h b/libtwolame/twolame.h index 0c52728..9aaba95 100644 --- a/libtwolame/twolame.h +++ b/libtwolame/twolame.h @@ -263,7 +263,7 @@ TL_API int twolame_encode_buffer_float32(twolame_options * glopts, * \return The number of bytes put in output buffer * or a negative value on error */ -int twolame_encode_buffer_float32_interleaved(twolame_options * glopts, +TL_API int twolame_encode_buffer_float32_interleaved(twolame_options * glopts, const float pcm[], int num_samples, unsigned char *mp2buffer, int mp2buffer_size);