Mercurial > sdl-ios-xcode
diff include/SDL_string.h @ 1341:d02b552e5304
Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 12:11:33 +0000 |
parents | 3692456e7b0f |
children | 7ba544e2888d |
line wrap: on
line diff
--- a/include/SDL_string.h Tue Feb 07 11:18:21 2006 +0000 +++ b/include/SDL_string.h Tue Feb 07 12:11:33 2006 +0000 @@ -201,6 +201,12 @@ #define SDL_strncat(dst, src, n) (SDL_strncpy(dst+SDL_strlen(dst), src, n), dst) #endif +#ifdef HAVE_STRDUP +#define SDL_strdup strdup +#else +extern DECLSPEC char * SDLCALL SDL_strdup(const char *string); +#endif + #ifdef HAVE__STRREV #define SDL_strrev _strrev #else @@ -289,6 +295,24 @@ #endif /* SDL_HAS_64BIT_TYPE */ +#ifdef HAVE_STRTOD +#define SDL_strtod strtod +#else +extern DECLSPEC double SDLCALL SDL_strtod(const char *string, char **endp); +#endif + +#ifdef HAVE_ATOI +#define SDL_atoi atoi +#else +#define SDL_atoi(X) SDL_strtol(X, NULL, 0) +#endif + +#ifdef HAVE_ATOF +#define SDL_atof atof +#else +#define SDL_atof(X) SDL_strtod(X, NULL) +#endif + #ifdef HAVE_STRCMP #define SDL_strcmp strcmp #else