Corrected warning.
[wine.git] / include / wine_gl.h
blob8e8b5769fe3832b031561ec9fe6b9d7ec6b27d77
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>
24 #include <GL/glx.h>
26 #undef APIENTRY
27 #undef CALLBACK
28 #undef WINAPI
30 /* Redefines the constants */
31 #define CALLBACK __stdcall
32 #define WINAPI __stdcall
33 #define APIENTRY WINAPI
35 #else /* HAVE_LIBMESAGL */
37 #undef HAVE_MESAGL
39 #endif /* HAVE_LIBMESAGL */
41 #endif /* __WINE_GL_H */