Bug fixes (thanks to Juergen Schmied).
[wine/multimedia.git] / include / wine_gl.h
blobc340ac1452c80d2da3d29b15912c2c9a60768e5e
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_WINE_GL_H
8 #define __WINE_WINE_GL_H
10 #include "config.h"
12 #if defined(HAVE_LIBMESAGL) && defined(HAVE_GL_GLX_H)
14 #define HAVE_MESAGL
16 #undef APIENTRY
17 #undef CALLBACK
18 #undef WINAPI
20 #include <GL/gl.h>
21 #include <GL/glx.h>
23 #undef APIENTRY
24 #undef CALLBACK
25 #undef WINAPI
27 /* Redefines the constants */
28 #define CALLBACK __stdcall
29 #define WINAPI __stdcall
30 #define APIENTRY WINAPI
32 #else /* HAVE_LIBMESAGL */
34 #undef HAVE_MESAGL
36 #endif /* HAVE_LIBMESAGL */
38 #endif /* __WINE_WINE_GL_H */