summaryrefslogtreecommitdiffstats
path: root/make/stub_includes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-12-16 04:18:15 +0100
committerSven Gothel <[email protected]>2010-12-16 04:18:15 +0100
commit96a0e0706258824c1dd524d4cbd7682a904b84f4 (patch)
tree48784cf9a3ac72b9faaf0f602fcb5210be493eee /make/stub_includes
parente38af7beda4edaa719240dda50df0a6611528586 (diff)
Fix WGL Bitmap Offscreen Drawable
In conjunction with the gluegen investigation (gluegen: fbdedff789077b5ffa07811590f771b6f9a4f3a7), on Windows the type LONG is always 32bit, hence we have to declare: typedef __int32 LONG; Besides, WGL_DRAW_TO_PBUFFER_ARB and WGL_DRAW_TO_BITMAP_ARB were missing in the WGL/ARB attribute query, and the latter was not set in caps -> attributes. Added fail safe exception for null chosen caps, if X11/WGL algo fails to determine.
Diffstat (limited to 'make/stub_includes')
-rw-r--r--make/stub_includes/win32/windows.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/stub_includes/win32/windows.h b/make/stub_includes/win32/windows.h
index 382ab8c81..5abf792d1 100644
--- a/make/stub_includes/win32/windows.h
+++ b/make/stub_includes/win32/windows.h
@@ -14,7 +14,7 @@ typedef unsigned char BYTE;
typedef char CHAR;
typedef unsigned int DWORD;
typedef int INT;
-typedef int INT32;
+typedef __int32 INT32;
typedef __int64 INT64;
typedef float FLOAT;
typedef struct _handle* HANDLE;
@@ -26,7 +26,7 @@ typedef HANDLE HMODULE;
typedef HANDLE HINSTANCE;
typedef HANDLE HPALETTE;
typedef HANDLE HWND;
-typedef long LONG;
+typedef __int32 LONG;
typedef const char* LPCSTR;
typedef void* LPVOID;
typedef struct _proc* PROC;