include/SDL_config_win32.h
changeset 1465 8dfa9a6d69a5
parent 1428 5f52867ba65c
child 1470 d47d96962fcc
     1.1 --- a/include/SDL_config_win32.h	Sat Mar 04 05:13:03 2006 +0000
     1.2 +++ b/include/SDL_config_win32.h	Sat Mar 04 08:24:35 2006 +0000
     1.3 @@ -26,18 +26,34 @@
     1.4  /* This is a set of defines to configure the SDL features */
     1.5  
     1.6  #ifdef _MSC_VER
     1.7 -typedef __int8			int8_t;
     1.8 +typedef signed __int8		int8_t;
     1.9  typedef unsigned __int8		uint8_t;
    1.10 -typedef __int16			int16_t;
    1.11 +typedef signed __int16		int16_t;
    1.12  typedef unsigned __int16	uint16_t;
    1.13 -typedef __int32			int32_t;
    1.14 +typedef signed __int32		int32_t;
    1.15  typedef unsigned __int32	uint32_t;
    1.16 -typedef __int64			int64_t;
    1.17 +typedef signed __int64		int64_t;
    1.18  typedef unsigned __int64	uint64_t;
    1.19 -#if _MSC_VER <= 1200
    1.20 +#ifndef _UINTPTR_T_DEFINED
    1.21 +#ifdef  _WIN64
    1.22 +typedef unsigned __int64    uintptr_t;
    1.23 +#else
    1.24 +typedef unsigned int   uintptr_t;
    1.25 +#endif
    1.26 +#define _UINTPTR_T_DEFINED
    1.27 +#endif
    1.28 +#else
    1.29 +typedef signed char int8_t;
    1.30 +typedef unsigned char uint8_t;
    1.31 +typedef signed short int16_t;
    1.32 +typedef unsigned short uint16_t;
    1.33 +typedef signed int int32_t;
    1.34 +typedef unsigned int uint32_t;
    1.35 +typedef signed long long int64_t;
    1.36 +typedef unsigned long long uint64_t;
    1.37 +typedef unsigned int size_t;
    1.38  typedef unsigned long uintptr_t;
    1.39 -#endif
    1.40 -#endif
    1.41 +#endif /* _MSC_VER */
    1.42  #define SDL_HAS_64BIT_TYPE	1
    1.43  
    1.44  /* Useful headers */
    1.45 @@ -79,8 +95,10 @@
    1.46  #define SDL_VIDEO_DRIVER_WINDIB	1
    1.47  
    1.48  /* Enable OpenGL support */
    1.49 +#ifndef _WIN32_WCE
    1.50  #define SDL_VIDEO_OPENGL	1
    1.51  #define SDL_VIDEO_OPENGL_WGL	1
    1.52 +#endif
    1.53  
    1.54  /* Enable assembly routines */
    1.55  #define SDL_ASSEMBLY_ROUTINES	1