From 974923ca058b61e4d729e82850d6641d1fa18585 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Fri, 26 Apr 2024 16:04:34 -0400 Subject: [PATCH] Map isalnum to SDL_isalnum for SDL_stdlib configuration --- mojoshader_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mojoshader_internal.h b/mojoshader_internal.h index 0798fd1..1cca806 100644 --- a/mojoshader_internal.h +++ b/mojoshader_internal.h @@ -111,6 +111,12 @@ typedef Uint64 uint64; /* TODO: Move MojoShader away from strcpy! This len is awful! */ #define strcpy(dst, src) SDL_strlcpy(dst, src, SDL_strlen(src) + 1) +/* ctype.h */ +#ifdef isalnum +#undef isalnum +#endif +#define isalnum SDL_isalnum + /* dlfcn.h */ #define dlopen(a, b) SDL_LoadObject(a) #define dlclose SDL_UnloadObject