More GLEWAPIENTRY fixups for Windows build

This commit is contained in:
Nigel Stewart 2012-05-07 09:05:12 -05:00
parent 439fc9dd91
commit 4d2f756f74
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
/* ------------------------------------------------------------------------- */
GLboolean glewGetExtension (const char* name)
GLboolean GLEWAPIENTRY glewGetExtension (const char* name)
{
const GLubyte* start;
const GLubyte* end;
@ -16,7 +16,7 @@ GLboolean glewGetExtension (const char* name)
#ifndef GLEW_MX
static
#endif
GLenum glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
GLenum GLEWAPIENTRY glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
{
const GLubyte* s;
GLuint dot;

View File

@ -3,7 +3,7 @@
static PFNWGLGETEXTENSIONSSTRINGARBPROC _wglewGetExtensionsStringARB = NULL;
static PFNWGLGETEXTENSIONSSTRINGEXTPROC _wglewGetExtensionsStringEXT = NULL;
GLboolean wglewGetExtension (const char* name)
GLboolean GLEWAPIENTRY wglewGetExtension (const char* name)
{
const GLubyte* start;
const GLubyte* end;
@ -20,7 +20,7 @@ GLboolean wglewGetExtension (const char* name)
return _glewSearchExtension(name, start, end);
}
GLenum wglewContextInit (WGLEW_CONTEXT_ARG_DEF_LIST)
GLenum GLEWAPIENTRY wglewContextInit (WGLEW_CONTEXT_ARG_DEF_LIST)
{
GLboolean crippled;
const GLubyte* extStart;

View File

@ -7,9 +7,9 @@
#if defined(_WIN32)
#if defined(GLEW_MX)
GLboolean wglewContextIsSupported (const WGLEWContext* ctx, const char* name)
GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext* ctx, const char* name)
#else
GLboolean wglewIsSupported (const char* name)
GLboolean GLEWAPIENTRY wglewIsSupported (const char* name)
#endif
{
GLubyte* pos = (GLubyte*)name;