1 /* Wrapper for OpenGL includes...
2 Copyright 1998 - Lionel Ulmer
4 This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
7 #ifndef __WINE_WINE_GL_H
8 #define __WINE_WINE_GL_H
10 #ifndef __WINE_CONFIG_H
11 # error You must include config.h to use this header
14 #if defined(HAVE_OPENGL)
18 /* As GLX relies on X, this is needed */
19 #define ENTER_GL() wine_tsx11_lock()
20 #define LEAVE_GL() wine_tsx11_unlock()
26 #define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
29 #ifdef HAVE_GL_GLEXT_H
30 # include <GL/glext.h>
38 /* Redefines the constants */
39 #define CALLBACK __stdcall
40 #define WINAPI __stdcall
41 #define APIENTRY WINAPI
43 #endif /* HAVE_OPENGL */
45 #endif /* __WINE_WINE_GL_H */