Use r2 instead of r13 for TLS, since r13 is used in the ELF32 PPC
[wine] / include / wine_gl.h
1 /* Wrapper for OpenGL includes...
2  * Copyright 1998 - Lionel Ulmer
3  *
4  * This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
5  * constants.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #ifndef __WINE_WINE_GL_H
23 #define __WINE_WINE_GL_H
24
25 #ifndef __WINE_CONFIG_H
26 # error You must include config.h to use this header
27 #endif
28
29 #if defined(HAVE_OPENGL)
30
31 #include "ts_xlib.h"
32
33 /* As GLX relies on X, this is needed */
34 #define ENTER_GL() wine_tsx11_lock()
35 #define LEAVE_GL() wine_tsx11_unlock()
36
37 #undef APIENTRY
38 #undef CALLBACK
39 #undef WINAPI
40
41 #define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
42 #include <GL/gl.h>
43 #include <GL/glx.h>
44 #ifdef HAVE_GL_GLEXT_H
45 # include <GL/glext.h>
46 #endif
47 #undef  XMD_H
48
49 #undef APIENTRY
50 #undef CALLBACK
51 #undef WINAPI
52
53 /* Redefines the constants */
54 #define CALLBACK    __stdcall
55 #define WINAPI      __stdcall
56 #define APIENTRY    WINAPI
57
58 #endif /* HAVE_OPENGL */
59
60 #endif /* __WINE_WINE_GL_H */