opengl32: Avoid using the system GL headers.

This commit is contained in:
Alexandre Julliard 2012-11-07 13:15:24 +01:00
parent 70e536f46b
commit fdc1f2d432
5 changed files with 5 additions and 18 deletions

View File

@ -1,7 +1,6 @@
MODULE = opengl32.dll
IMPORTLIB = opengl32
IMPORTS = user32 gdi32 advapi32
EXTRAINCL = @X_CFLAGS@
C_SRCS = \
opengl_ext.c \

View File

@ -945,9 +945,9 @@ print NORM "
#include \"config.h\"
#include <stdarg.h>
#include \"opengl_ext.h\"
#include \"winternl.h\"
#include \"wingdi.h\"
#include \"wine/wgl.h\"
#include \"wine/wgl_driver.h\"
#include \"wine/debug.h\"
@ -991,6 +991,7 @@ print EXT "
#include \"opengl_ext.h\"
#include \"winternl.h\"
#include \"wingdi.h\"
#include \"wine/wgl.h\"
#define WGL_WGLEXT_PROTOTYPES
#include \"wine/wglext.h\"
#include \"wine/wgl_driver.h\"

View File

@ -6,6 +6,7 @@
#include "opengl_ext.h"
#include "winternl.h"
#include "wingdi.h"
#include "wine/wgl.h"
#define WGL_WGLEXT_PROTOTYPES
#include "wine/wglext.h"
#include "wine/wgl_driver.h"

View File

@ -19,22 +19,8 @@
#ifndef __DLLS_OPENGL32_OPENGL_EXT_H
#define __DLLS_OPENGL32_OPENGL_EXT_H
#define XMD_H /* This is to prevent the Xmd.h inclusion bug :-/ */
#include <GL/gl.h>
#undef XMD_H
#undef APIENTRY
#undef CALLBACK
#undef GLAPI
#undef WINAPI
#undef WINGDIAPI
/* Redefines the constants */
#define CALLBACK __stdcall
#define WINAPI __stdcall
#define APIENTRY WINAPI
#include "windef.h"
#include "wine/wgl.h"
typedef struct {
const char *name; /* name of the extension */

View File

@ -3,9 +3,9 @@
#include "config.h"
#include <stdarg.h>
#include "opengl_ext.h"
#include "winternl.h"
#include "wingdi.h"
#include "wine/wgl.h"
#include "wine/wgl_driver.h"
#include "wine/debug.h"