Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
winglue.h
1 //
2 // these definitions let us include gl.h without the entire Windows headers
3 //
4 
5 #ifndef WIN_GL_GLUE_H
6 #define WIN_GL_GLUE_H
7 
8 #ifndef NULL
9 #define NULL 0
10 #endif
11 
12  /* XXX This is from Win32's <windef.h> */
13 # ifndef APIENTRY
14 # define GLUT_APIENTRY_DEFINED
15 # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)
16 # define APIENTRY __stdcall
17 # else
18 # define APIENTRY
19 # endif
20 # endif
21  /* XXX This is from Win32's <winnt.h> */
22 # ifndef CALLBACK
23 # if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS)
24 # define CALLBACK __stdcall
25 # else
26 # define CALLBACK
27 # endif
28 # endif
29  /* XXX This is from Win32's <wingdi.h> and <winnt.h> */
30 # ifndef WINGDIAPI
31 # define GLUT_WINGDIAPI_DEFINED
32 # define WINGDIAPI __declspec(dllimport)
33 # endif
34  /* XXX This is from Win32's <ctype.h> */
35 # ifndef _WCHAR_T_DEFINED
36 typedef unsigned short wchar_t;
37 # define _WCHAR_T_DEFINED
38 # endif
39 
40 #if 1
41 
42 //#define WINGDIAPI DECLSPEC_IMPORT
43 #define DECLSPEC_IMPORT __declspec(dllimport)
44 #define WINBASEAPI DECLSPEC_IMPORT
45 #define VOID void
46 
47 #ifndef _WINDEF_
48 typedef unsigned long DWORD;
49 #define WINAPI __stdcall
50 #define APIENTRY __stdcall
51 #define CALLBACK __stdcall
52 #endif
53 
54 #endif
55 
56 #endif // WIN_GL_GLUE_H