include/SDL_config_minimal.h
changeset 7307 5d6b7b9432d3
parent 7191 75360622e65f
child 7667 be1cc6f55840
     1.1 --- a/include/SDL_config_minimal.h	Tue Jun 11 08:37:03 2013 -0700
     1.2 +++ b/include/SDL_config_minimal.h	Thu Jun 13 22:10:10 2013 -0700
     1.3 @@ -30,10 +30,12 @@
     1.4   *  This is the minimal configuration that can be used to build SDL.
     1.5   */
     1.6  
     1.7 -#include <stddef.h>
     1.8 -#include <stdarg.h>
     1.9 +#define HAVE_STDARG_H   1
    1.10 +#define HAVE_STDDEF_H   1
    1.11  
    1.12 -#if !defined(_STDINT_H_) && !defined(_STDINT_H) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
    1.13 +/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
    1.14 +#if defined(_MSC_VER) && (_MSC_VER < 1600)
    1.15 +/* Here are some reasonable defaults */
    1.16  typedef unsigned int size_t;
    1.17  typedef signed char int8_t;
    1.18  typedef unsigned char uint8_t;
    1.19 @@ -44,7 +46,9 @@
    1.20  typedef signed long long int64_t;
    1.21  typedef unsigned long long uint64_t;
    1.22  typedef unsigned long uintptr_t;
    1.23 -#endif /* if (stdint.h isn't available) */
    1.24 +#else
    1.25 +#define HAVE_STDINT_H 1
    1.26 +#endif /* Visual Studio 2008 */
    1.27  
    1.28  #ifdef __GNUC__
    1.29  #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1