Added check for the presence of Mesa's header files.
[wine/hacks.git] / include / wine_gl.h
blob8a35465599ab5361fdbcd06a74779b7c8f5e187f
1 /* Wrapper for OpenGL includes...
2 Copyright 1998 - Lionel Ulmer
4 This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
5 constants. */
7 #ifndef __WINE_GL_H
8 #define __WINE_GL_H
10 #include "config.h"
12 #if defined(HAVE_LIBMESAGL) && defined(HAVE_GL_OSMESA_H)
14 #define HAVE_MESAGL
16 #undef APIENTRY
17 #undef CALLBACK
18 #undef WINAPI
20 #include <GL/gl.h>
21 /* These will need to have some #ifdef / #endif added to support
22 more than the X11 using OSMesa target */
23 #include <GL/osmesa.h>
25 #undef APIENTRY
26 #undef CALLBACK
27 #undef WINAPI
29 /* Redefines the constants */
30 #define CALLBACK __stdcall
31 #define WINAPI __stdcall
32 #define APIENTRY WINAPI
34 #else /* HAVE_LIBMESAGL */
36 #undef HAVE_MESAGL
38 #endif /* HAVE_LIBMESAGL */
40 #endif /* __WINE_GL_H */