Skip to content

Commit

Permalink
Map isalnum to SDL_isalnum for SDL_stdlib configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Apr 26, 2024
1 parent bb8b653 commit 974923c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mojoshader_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 974923c

Please sign in to comment.