diff include/SDL_stdinc.h @ 1456:84de7511f79f

Fixed a bunch of 64-bit compatibility problems
author Sam Lantinga <slouken@libsdl.org>
date Wed, 01 Mar 2006 09:43:47 +0000
parents d2ee8da60262
children 73dc5d39bbf8
line wrap: on
line diff
--- a/include/SDL_stdinc.h	Mon Feb 27 22:14:40 2006 +0000
+++ b/include/SDL_stdinc.h	Wed Mar 01 09:43:47 2006 +0000
@@ -446,6 +446,12 @@
 extern DECLSPEC long SDLCALL SDL_strtol(const char *string, char **endp, int base);
 #endif
 
+#if HAVE_STRTOUL
+#define SDL_strtoul      strtoul
+#else
+extern DECLSPEC unsigned long SDLCALL SDL_strtoul(const char *string, char **endp, int base);
+#endif
+
 #if SDL_HAS_64BIT_TYPE
 
 #if HAVE__I64TOA
@@ -466,6 +472,12 @@
 extern DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *string, char **endp, int base);
 #endif
 
+#if HAVE_STRTOULL
+#define SDL_strtoull     strtoull
+#else
+extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *string, char **endp, int base);
+#endif
+
 #endif /* SDL_HAS_64BIT_TYPE */
 
 #if HAVE_STRTOD