# HG changeset patch # User Sam Lantinga # Date 1249217699 0 # Node ID 6290f9bd097da2f62d49a6d0246cd43d5c6b4150 # Parent b91354fa65a2cf8f45f0c898b3201b8b21aa515b Better check which includes #define used in stdint.h diff -r b91354fa65a2 -r 6290f9bd097d include/SDL_config.h.in --- a/include/SDL_config.h.in Sun Aug 02 12:45:20 2009 +0000 +++ b/include/SDL_config.h.in Sun Aug 02 12:54:59 2009 +0000 @@ -39,6 +39,7 @@ #undef volatile /* C datatypes */ +#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) #undef size_t #undef int8_t #undef uint8_t @@ -49,6 +50,8 @@ #undef int64_t #undef uint64_t #undef uintptr_t +#endif /* !_STDINT_H_ && !HAVE_STDINT_H */ + #undef SIZEOF_VOIDP #undef SDL_HAS_64BIT_TYPE diff -r b91354fa65a2 -r 6290f9bd097d include/SDL_config_dreamcast.h --- a/include/SDL_config_dreamcast.h Sun Aug 02 12:45:20 2009 +0000 +++ b/include/SDL_config_dreamcast.h Sun Aug 02 12:54:59 2009 +0000 @@ -27,7 +27,7 @@ /* This is a set of defines to configure the SDL features */ -#ifndef HAVE_STDINT_H +#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; @@ -37,7 +37,7 @@ typedef signed long long int64_t; typedef unsigned long long uint64_t; typedef unsigned long uintptr_t; -#endif /* !HAVE_STDINT_H */ +#endif /* !_STDINT_H_ && !HAVE_STDINT_H */ #define SIZEOF_VOIDP 4 #define SDL_HAS_64BIT_TYPE 1 diff -r b91354fa65a2 -r 6290f9bd097d include/SDL_config_iphoneos.h --- a/include/SDL_config_iphoneos.h Sun Aug 02 12:45:20 2009 +0000 +++ b/include/SDL_config_iphoneos.h Sun Aug 02 12:54:59 2009 +0000 @@ -25,7 +25,7 @@ #include "SDL_platform.h" -#ifndef HAVE_STDINT_H +#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; @@ -33,7 +33,7 @@ typedef signed int int32_t; typedef unsigned int uint32_t; typedef unsigned long uintptr_t; -#endif /* !HAVE_STDINT_H */ +#endif /* !_STDINT_H_ && !HAVE_STDINT_H */ #define SDL_HAS_64BIT_TYPE 1 diff -r b91354fa65a2 -r 6290f9bd097d include/SDL_config_minimal.h --- a/include/SDL_config_minimal.h Sun Aug 02 12:45:20 2009 +0000 +++ b/include/SDL_config_minimal.h Sun Aug 02 12:54:59 2009 +0000 @@ -29,7 +29,7 @@ #include -#ifndef HAVE_STDINT_H +#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; @@ -38,7 +38,7 @@ typedef unsigned int uint32_t; typedef unsigned int size_t; typedef unsigned long uintptr_t; -#endif /* !HAVE_STDINT_H */ +#endif /* !_STDINT_H_ && !HAVE_STDINT_H */ /* Enable the dummy audio driver (src/audio/dummy/\*.c) */ #define SDL_AUDIO_DRIVER_DUMMY 1 diff -r b91354fa65a2 -r 6290f9bd097d include/SDL_config_nintendods.h --- a/include/SDL_config_nintendods.h Sun Aug 02 12:45:20 2009 +0000 +++ b/include/SDL_config_nintendods.h Sun Aug 02 12:54:59 2009 +0000 @@ -27,7 +27,7 @@ /* This is a set of defines to configure the SDL features */ -#ifndef HAVE_STDINT_H +#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; @@ -44,7 +44,7 @@ #else typedef unsigned __PTRDIFF_TYPE__ uintptr_t; #endif -#endif /* !HAVE_STDINT_H */ +#endif /* !_STDINT_H_ && !HAVE_STDINT_H */ #define SDL_HAS_64BIT_TYPE 1 diff -r b91354fa65a2 -r 6290f9bd097d include/SDL_config_os2.h --- a/include/SDL_config_os2.h Sun Aug 02 12:45:20 2009 +0000 +++ b/include/SDL_config_os2.h Sun Aug 02 12:54:59 2009 +0000 @@ -27,7 +27,7 @@ /* This is a set of defines to configure the SDL features */ -#ifndef HAVE_STDINT_H +#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; @@ -38,7 +38,7 @@ typedef unsigned long uintptr_t; typedef signed long long int64_t; typedef unsigned long long uint64_t; -#endif /* !HAVE_STDINT_H */ +#endif /* !_STDINT_H_ && !HAVE_STDINT_H */ #define SIZEOF_VOIDP 4 #define SDL_HAS_64BIT_TYPE 1 diff -r b91354fa65a2 -r 6290f9bd097d include/SDL_config_win32.h --- a/include/SDL_config_win32.h Sun Aug 02 12:45:20 2009 +0000 +++ b/include/SDL_config_win32.h Sun Aug 02 12:54:59 2009 +0000 @@ -27,7 +27,7 @@ /* This is a set of defines to configure the SDL features */ -#ifndef HAVE_STDINT_H +#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) #if defined(__GNUC__) || defined(__DMC__) #define HAVE_STDINT_H 1 #elif defined(_MSC_VER) @@ -69,7 +69,7 @@ #endif typedef unsigned int uintptr_t; #endif /* __GNUC__ || _MSC_VER */ -#endif /* !HAVE_STDINT_H */ +#endif /* !_STDINT_H_ && !HAVE_STDINT_H */ #ifdef _WIN64 # define SIZEOF_VOIDP 8