Author: cwittich
Date: Sun Nov 18 15:36:52 2007
New Revision: 30539
URL:
http://svn.reactos.org/svn/reactos?rev=30539&view=rev
Log:
fix compilation with msvc
Modified:
trunk/reactos/dll/win32/opengl32/opengl32.h
Modified: trunk/reactos/dll/win32/opengl32/opengl32.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/opengl32/opengl3…
==============================================================================
--- trunk/reactos/dll/win32/opengl32/opengl32.h (original)
+++ trunk/reactos/dll/win32/opengl32/opengl32.h Sun Nov 18 15:36:52 2007
@@ -11,6 +11,10 @@
#ifndef OPENGL32_PRIVATE_H
#define OPENGL32_PRIVATE_H
+
+#ifdef _MSC_VER
+#define snwprintf _snwprintf
+#endif
#ifdef __cplusplus
extern "C" {
@@ -112,7 +116,7 @@
typedef void GLvoid;
/* Called by the driver to set the dispatch table */
-typedef DWORD WINAPI (*SetContextCallBack)( const ICDTable * );
+typedef DWORD (WINAPI *SetContextCallBack)( const ICDTable * );
/* OpenGL ICD data */
typedef struct tagGLDRIVERDATA
@@ -126,23 +130,23 @@
DWORD driver_version; /*!< DriverVersion value from registry */
DWORD flags; /*!< Flags value from registry */
- BOOL WINAPI (*DrvCopyContext)( HGLRC, HGLRC, UINT );
- HGLRC WINAPI (*DrvCreateContext)( HDC );
- HGLRC WINAPI (*DrvCreateLayerContext)( HDC, int );
- BOOL WINAPI (*DrvDeleteContext)( HGLRC );
- BOOL WINAPI (*DrvDescribeLayerPlane)( HDC, int, int, UINT, LPLAYERPLANEDESCRIPTOR
);
- int WINAPI (*DrvDescribePixelFormat)( IN HDC, IN int, IN UINT, OUT
LPPIXELFORMATDESCRIPTOR );
- int WINAPI (*DrvGetLayerPaletteEntries)( HDC, int, int, int, COLORREF * );
- PROC WINAPI (*DrvGetProcAddress)( LPCSTR lpProcName );
- void WINAPI (*DrvReleaseContext)( HGLRC hglrc ); /* maybe returns BOOL? */
- BOOL WINAPI (*DrvRealizeLayerPalette)( HDC, int, BOOL );
- PICDTable WINAPI (*DrvSetContext)( HDC hdc, HGLRC hglrc, SetContextCallBack callback );
- int WINAPI (*DrvSetLayerPaletteEntries)( HDC, int, int, int, CONST COLORREF * );
- BOOL WINAPI (*DrvSetPixelFormat)( IN HDC, IN int, const PIXELFORMATDESCRIPTOR * );
- BOOL WINAPI (*DrvShareLists)( HGLRC, HGLRC );
- BOOL WINAPI (*DrvSwapBuffers)( HDC );
- BOOL WINAPI (*DrvSwapLayerBuffers)( HDC, UINT );
- BOOL WINAPI (*DrvValidateVersion)( DWORD );
+ BOOL (WINAPI *DrvCopyContext)( HGLRC, HGLRC, UINT );
+ HGLRC (WINAPI *DrvCreateContext)( HDC );
+ HGLRC (WINAPI *DrvCreateLayerContext)( HDC, int );
+ BOOL (WINAPI *DrvDeleteContext)( HGLRC );
+ BOOL (WINAPI *DrvDescribeLayerPlane)( HDC, int, int, UINT, LPLAYERPLANEDESCRIPTOR
);
+ int (WINAPI *DrvDescribePixelFormat)( IN HDC, IN int, IN UINT, OUT
LPPIXELFORMATDESCRIPTOR );
+ int (WINAPI *DrvGetLayerPaletteEntries)( HDC, int, int, int, COLORREF * );
+ PROC (WINAPI *DrvGetProcAddress)( LPCSTR lpProcName );
+ void (WINAPI *DrvReleaseContext)( HGLRC hglrc ); /* maybe returns BOOL? */
+ BOOL (WINAPI *DrvRealizeLayerPalette)( HDC, int, BOOL );
+ PICDTable (WINAPI *DrvSetContext)( HDC hdc, HGLRC hglrc, SetContextCallBack callback );
+ int (WINAPI *DrvSetLayerPaletteEntries)( HDC, int, int, int, CONST COLORREF * );
+ BOOL (WINAPI *DrvSetPixelFormat)( IN HDC, IN int, const PIXELFORMATDESCRIPTOR * );
+ BOOL (WINAPI *DrvShareLists)( HGLRC, HGLRC );
+ BOOL (WINAPI *DrvSwapBuffers)( HDC );
+ BOOL (WINAPI *DrvSwapLayerBuffers)( HDC, UINT );
+ BOOL (WINAPI *DrvValidateVersion)( DWORD );
struct tagGLDRIVERDATA *next; /* next ICD -- linked list */
} GLDRIVERDATA;