diff options
author | Nicolas Bacca | 2005-01-28 20:49:41 +0000 |
---|---|---|
committer | Nicolas Bacca | 2005-01-28 20:49:41 +0000 |
commit | c62d82450b7fc4d64bf6102cb8074457e3d0cb47 (patch) | |
tree | 8314153822145373e6614bcaf004cd9db483b9b5 | |
parent | 1160e09fdc992439c9bfa956e9dd8a8e722ddbc9 (diff) | |
download | scummvm-rg350-c62d82450b7fc4d64bf6102cb8074457e3d0cb47.tar.gz scummvm-rg350-c62d82450b7fc4d64bf6102cb8074457e3d0cb47.tar.bz2 scummvm-rg350-c62d82450b7fc4d64bf6102cb8074457e3d0cb47.zip |
Add isalnum for HPC compiler
svn-id: r16678
-rw-r--r-- | backends/wince/missing/missing.cpp | 7 | ||||
-rw-r--r-- | backends/wince/portdefs.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/backends/wince/missing/missing.cpp b/backends/wince/missing/missing.cpp index 0b3218d3cf..de4fc8a07b 100644 --- a/backends/wince/missing/missing.cpp +++ b/backends/wince/missing/missing.cpp @@ -245,6 +245,13 @@ void rewind(FILE *stream) #if _WIN32_WCE < 300 + +int isalnum(int c) { + return ((c >= 'A' && c <= 'Z') || + (c >= 'a' && c <= 'z') || + (c >= '0' && c <= '9')); +} + char *_strdup(const char *strSource) #else char *strdup(const char *strSource) diff --git a/backends/wince/portdefs.h b/backends/wince/portdefs.h index ead2437586..154e4d2cf7 100644 --- a/backends/wince/portdefs.h +++ b/backends/wince/portdefs.h @@ -26,6 +26,7 @@ #define _HEAPOK 0 void *calloc(size_t n, size_t s); +int isalnum(int c); int isdigit(int c); int isprint(int c); int isspace(int c); |