Skip to content

Commit

Permalink
music_drflac, music_drmp3: define DRFLAC_API and DRMP3_API, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed May 21, 2022
1 parent e93663b commit e862c2e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/codecs/music_drflac.c
Expand Up @@ -28,6 +28,14 @@
#include "SDL.h"

#define DR_FLAC_IMPLEMENTATION
#if defined(__GNUC__) && (__GNUC__ >= 4) && \
!(defined(_WIN32) || defined(__EMX__))
#define DRFLAC_API __attribute__((visibility("hidden")))
#elif defined(__APPLE__)
#define DRFLAC_API __private_extern__
#else
#define DRFLAC_API /* just in case.. */
#endif
#define DR_FLAC_NO_STDIO
#define DRFLAC_ASSERT(expression)
#define DRFLAC_COPY_MEMORY(dst, src, sz) SDL_memcpy((dst), (src), (sz))
Expand Down
8 changes: 8 additions & 0 deletions src/codecs/music_drmp3.c
Expand Up @@ -26,6 +26,14 @@
#include "SDL.h"

#define DR_MP3_IMPLEMENTATION
#if defined(__GNUC__) && (__GNUC__ >= 4) && \
!(defined(_WIN32) || defined(__EMX__))
#define DRMP3_API __attribute__((visibility("hidden")))
#elif defined(__APPLE__)
#define DRMP3_API __private_extern__
#else
#define DRMP3_API /* just in case.. */
#endif
#define DR_MP3_NO_STDIO
#define DRMP3_ASSERT(expression)
#define DRMP3_COPY_MEMORY(dst, src, sz) SDL_memcpy((dst), (src), (sz))
Expand Down

0 comments on commit e862c2e

Please sign in to comment.