Use SDL_strcmp(), not strcmp().
Thanks, Suzuki Masahiro. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402239
This commit is contained in:
parent
cf90d65b91
commit
7f36032f22
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ SDL_RunAudio(void *devicep)
|
||||||
static SDL_AudioFormat
|
static SDL_AudioFormat
|
||||||
SDL_ParseAudioFormat(const char *string)
|
SDL_ParseAudioFormat(const char *string)
|
||||||
{
|
{
|
||||||
#define CHECK_FMT_STRING(x) if (strcmp(string, #x) == 0) return AUDIO_##x
|
#define CHECK_FMT_STRING(x) if (SDL_strcmp(string, #x) == 0) return AUDIO_##x
|
||||||
CHECK_FMT_STRING(U8);
|
CHECK_FMT_STRING(U8);
|
||||||
CHECK_FMT_STRING(S8);
|
CHECK_FMT_STRING(S8);
|
||||||
CHECK_FMT_STRING(U16LSB);
|
CHECK_FMT_STRING(U16LSB);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue