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