UTIL: SDL_isalnum is not available in all supported sdl versions

master
Martin Gerhardy 2022-05-23 20:12:35 +02:00
parent eff8806e2f
commit c1120a7510
1 changed files with 2 additions and 2 deletions

View File

@ -3,12 +3,12 @@
*/ */
#include "Base64.h" #include "Base64.h"
#include "SDL_stdinc.h"
#include "core/ArrayLength.h" #include "core/ArrayLength.h"
#include "core/Common.h" #include "core/Common.h"
#include "core/Log.h" #include "core/Log.h"
#include "io/MemoryReadStream.h" #include "io/MemoryReadStream.h"
#include "io/Stream.h" #include "io/Stream.h"
#include <ctype.h>
namespace util { namespace util {
namespace Base64 { namespace Base64 {
@ -48,7 +48,7 @@ static CORE_FORCE_INLINE bool decode0(uint8_t src[4], io::WriteStream &out, int
} }
static CORE_FORCE_INLINE bool validbyte(const uint8_t c) { static CORE_FORCE_INLINE bool validbyte(const uint8_t c) {
return c == '+' || c == '/' || SDL_isalnum(c); return c == '+' || c == '/' || isalnum(c);
} }
} // namespace _priv } // namespace _priv