Skip to content

Commit

Permalink
More symbol dependency work. Make sure nothing is exported by accident.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 17, 2018
1 parent 433054b commit b165bfe
Show file tree
Hide file tree
Showing 5 changed files with 186 additions and 158 deletions.
2 changes: 1 addition & 1 deletion src/SDL_sound_coreaudio.c
Expand Up @@ -543,7 +543,7 @@ static int CoreAudio_open(Sound_Sample *sample, const char *ext)
}


core_audio_file_container->outputFormat = (AudioStreamBasicDescription*)malloc(sizeof(AudioStreamBasicDescription));
core_audio_file_container->outputFormat = (AudioStreamBasicDescription*)SDL_malloc(sizeof(AudioStreamBasicDescription));
BAIL_IF_MACRO(core_audio_file_container->outputFormat == NULL, ERR_OUT_OF_MEMORY, 0);


Expand Down
8 changes: 8 additions & 0 deletions src/SDL_sound_internal.h
Expand Up @@ -25,6 +25,14 @@

#include "SDL_sound.h"

#if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__)
#define SOUND_HAVE_PRAGMA_VISIBILITY 1
#endif

#if SOUND_HAVE_PRAGMA_VISIBILITY
#pragma GCC visibility push(hidden)
#endif

#if (defined DEBUG_CHATTER)
#define SNDDBG(x) SDL_LogDebug x
#else
Expand Down

0 comments on commit b165bfe

Please sign in to comment.