-PCHify OpenGL32

svn path=/trunk/; revision=34562
This commit is contained in:
Stefan Ginsberg
2008-07-17 11:37:49 +00:00
parent 30feb7b285
commit 03c3603a3d
6 changed files with 21 additions and 39 deletions
+2 -7
View File
@@ -19,16 +19,11 @@
*
* On other machines we use C to forward the calls (slow...)
*/
#define WIN32_LEANER_AND_MEANER
#define WIN32_NO_STATUS
#include <windows.h>
#include "teb.h"
#include "opengl32.h"
C_ASSERT(FIELD_OFFSET(TEB, glTable) == 0xbe8);
#include "opengl32.h"
int STDCALL glEmptyFunc0() { return 0; }
int STDCALL glEmptyFunc4( long l1 ) { return 0; }
int STDCALL glEmptyFunc8( long l1, long l2 ) { return 0; }
+1 -10
View File
@@ -1,5 +1,4 @@
/* $Id$
*
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: lib/opengl32/opengl32.c
@@ -9,16 +8,8 @@
* Feb 1, 2004: Created
*/
#define WIN32_LEAN_AND_MEAN
#define WIN32_NO_STATUS
#include <windows.h>
#include <winreg.h>
#include "teb.h"
#include <string.h>
#include "opengl32.h"
/* function prototypes */
static void OPENGL32_AppendICD( GLDRIVERDATA *icd );
static void OPENGL32_RemoveICD( GLDRIVERDATA *icd );
+17 -2
View File
@@ -1,5 +1,4 @@
/* $Id$
*
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: lib/opengl32/opengl32.h
@@ -29,6 +28,22 @@ extern "C" {
#define OPENGL_DRIVERS_SUBKEY L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\OpenGLDrivers"
#define OPENGL_DRIVERS_SUBKEY2 L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\OpenGLDrivers\\"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define WIN32_LEAN_AND_MEAN
#define WIN32_NO_STATUS
#include <windows.h>
#include <winreg.h>
#define NTOS_MODE_USER
#include <ddraw.h>
#include <ddrawi.h>
#include <winddi.h>
#include <ndk/ntndk.h>
/* gl function list */
#include "glfuncs.h"
@@ -6,6 +6,7 @@
<library>gdi32</library>
<library>user32</library>
<library>advapi32</library>
<pch>opengl32.h</pch>
<file>gl.c</file>
<file>opengl32.c</file>
<file>wgl.c</file>
-5
View File
@@ -1,5 +0,0 @@
// teb.h
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
-15
View File
@@ -8,21 +8,6 @@
* Feb 2, 2004: Created
*/
#define WIN32_LEAN_AND_MEAN
#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ddraw.h>
#include <ddrawi.h>
#include <winddi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "teb.h"
#define OPENGL32_GL_FUNC_PROTOTYPES
#include "opengl32.h"