- (ugly) fix for the 'Xmd.h' problem
[wine] / include / wine_gl.h
1 /* Wrapper for OpenGL includes...
2      Copyright 1998 - Lionel Ulmer
3
4    This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
5    constants. */
6
7 #ifndef __WINE_WINE_GL_H
8 #define __WINE_WINE_GL_H
9
10 #include "config.h"
11
12 #if defined(HAVE_LIBMESAGL) && defined(HAVE_GL_GLX_H)
13
14 #define HAVE_MESAGL
15
16 #undef APIENTRY
17 #undef CALLBACK
18 #undef WINAPI
19
20 #define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
21 #include <GL/gl.h>
22 #include <GL/glx.h>
23 #undef  XMD_H
24
25 #undef APIENTRY
26 #undef CALLBACK
27 #undef WINAPI
28
29 /* Redefines the constants */
30 #define CALLBACK    __stdcall
31 #define WINAPI      __stdcall
32 #define APIENTRY    WINAPI
33
34 #else /* HAVE_LIBMESAGL */
35
36 #undef HAVE_MESAGL
37
38 #endif /* HAVE_LIBMESAGL */
39
40 #endif /* __WINE_WINE_GL_H */