Added some more pthread overrides.
[wine.git] / include / wine_gl.h
blobade42424745bf5046a5a649265b3c63f725b1f0a
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 #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
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_WINE_GL_H */