include/SDL_config_win32.h
changeset 2132 46648dc418ec
parent 2087 b10089473699
child 2133 03715e20ec3c
     1.1 --- a/include/SDL_config_win32.h	Wed Jun 20 00:01:04 2007 +0000
     1.2 +++ b/include/SDL_config_win32.h	Thu Jun 21 18:21:49 2007 +0000
     1.3 @@ -45,6 +45,16 @@
     1.4  typedef unsigned int uintptr_t;
     1.5  #endif
     1.6  #define _UINTPTR_T_DEFINED
     1.7 +/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
     1.8 +#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
     1.9 +#define DWORD_PTR DWORD
    1.10 +#endif
    1.11 +#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
    1.12 +#define LONG_PTR LONG
    1.13 +#endif
    1.14 +#ifndef GWLP_HINSTANCE
    1.15 +#define GWLP_HINSTANCE GWL_HINSTANCE
    1.16 +#endif
    1.17  #endif
    1.18  #else /* !__GNUC__ && !_MSC_VER */
    1.19  typedef signed char int8_t;