summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/win32/gluegen/windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'make/stub_includes/win32/gluegen/windows.h')
-rw-r--r--make/stub_includes/win32/gluegen/windows.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/make/stub_includes/win32/gluegen/windows.h b/make/stub_includes/win32/gluegen/windows.h
new file mode 100644
index 000000000..46a560767
--- /dev/null
+++ b/make/stub_includes/win32/gluegen/windows.h
@@ -0,0 +1,67 @@
+/* Windows #defines and typedefs required for processing of extracts
+ from WINGDI.H and jawt_md.h */
+
+/**
+ * These are standard include replacement files
+ * for gluegen processing only!
+ */
+#ifndef __GLUEGEN__
+ #error "This file is intended to be used for GlueGen code generation, not native compilation.
+#endif
+
+#ifndef _WINDOWS_
+#define _WINDOWS_
+
+#define FAR
+#define WINBASEAPI
+#define WINGDIAPI
+#define WINUSERAPI
+#define WINAPI
+#define APIENTRY
+#define CONST const
+#define VOID void
+typedef int BOOL;
+typedef unsigned char BYTE;
+typedef char CHAR;
+typedef unsigned __int32 DWORD;
+typedef int INT;
+typedef __int32 INT32;
+typedef __int64 INT64;
+typedef float FLOAT;
+typedef struct _handle* HANDLE;
+typedef HANDLE HBITMAP;
+typedef HANDLE HDC;
+typedef HANDLE HGDIOBJ;
+typedef HANDLE HGLRC;
+typedef HANDLE HMODULE;
+typedef HANDLE HINSTANCE;
+typedef HANDLE HPALETTE;
+typedef HANDLE HWND;
+typedef HANDLE HRGN;
+typedef const char* LPCSTR;
+typedef void* PVOID;
+typedef void* LPVOID;
+typedef const void* LPCVOID;
+typedef __int32 LONG;
+typedef unsigned __int32 ULONG;
+typedef unsigned __int64 ULONG_PTR;
+typedef struct _proc* PROC;
+typedef unsigned int* PUINT;
+typedef unsigned int UINT;
+typedef unsigned short USHORT;
+typedef unsigned short WORD;
+typedef unsigned short ATOM;
+typedef intptr_t DWORD_PTR;
+typedef intptr_t* PDWORD_PTR;
+typedef __int32 HRESULT;
+
+/* Necessary handle typedefs for parsing wglext.h */
+
+typedef HANDLE HPBUFFERARB;
+typedef HANDLE HPBUFFEREXT;
+typedef HANDLE HGPUNV;
+typedef HANDLE HVIDEOOUTPUTDEVICENV;
+typedef HANDLE HVIDEOINPUTDEVICENV;
+typedef HANDLE HPVIDEODEV;
+
+#endif /* _WINDOWS_ */