comparison 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
comparison
equal deleted inserted replaced
1455:f487bb150acc 1456:84de7511f79f
444 #define SDL_strtol strtol 444 #define SDL_strtol strtol
445 #else 445 #else
446 extern DECLSPEC long SDLCALL SDL_strtol(const char *string, char **endp, int base); 446 extern DECLSPEC long SDLCALL SDL_strtol(const char *string, char **endp, int base);
447 #endif 447 #endif
448 448
449 #if HAVE_STRTOUL
450 #define SDL_strtoul strtoul
451 #else
452 extern DECLSPEC unsigned long SDLCALL SDL_strtoul(const char *string, char **endp, int base);
453 #endif
454
449 #if SDL_HAS_64BIT_TYPE 455 #if SDL_HAS_64BIT_TYPE
450 456
451 #if HAVE__I64TOA 457 #if HAVE__I64TOA
452 #define SDL_lltoa _i64toa 458 #define SDL_lltoa _i64toa
453 #else 459 #else
462 468
463 #if HAVE_STRTOLL 469 #if HAVE_STRTOLL
464 #define SDL_strtoll strtoll 470 #define SDL_strtoll strtoll
465 #else 471 #else
466 extern DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *string, char **endp, int base); 472 extern DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *string, char **endp, int base);
473 #endif
474
475 #if HAVE_STRTOULL
476 #define SDL_strtoull strtoull
477 #else
478 extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *string, char **endp, int base);
467 #endif 479 #endif
468 480
469 #endif /* SDL_HAS_64BIT_TYPE */ 481 #endif /* SDL_HAS_64BIT_TYPE */
470 482
471 #if HAVE_STRTOD 483 #if HAVE_STRTOD