Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix definition of TL_API under GCC #94

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions libtwolame/twolame.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down