From 4d2f756f745a02d566ab5d243ea966045fef9686 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Mon, 7 May 2012 09:05:12 -0500 Subject: [PATCH] More GLEWAPIENTRY fixups for Windows build --- auto/src/glew_init_gl.c | 4 ++-- auto/src/glew_init_wgl.c | 4 ++-- auto/src/glew_str_wgl.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/auto/src/glew_init_gl.c b/auto/src/glew_init_gl.c index bad641b..4a2d25b 100644 --- a/auto/src/glew_init_gl.c +++ b/auto/src/glew_init_gl.c @@ -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; diff --git a/auto/src/glew_init_wgl.c b/auto/src/glew_init_wgl.c index 775c02a..7e76099 100644 --- a/auto/src/glew_init_wgl.c +++ b/auto/src/glew_init_wgl.c @@ -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; diff --git a/auto/src/glew_str_wgl.c b/auto/src/glew_str_wgl.c index 6414e45..20552bd 100644 --- a/auto/src/glew_str_wgl.c +++ b/auto/src/glew_str_wgl.c @@ -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;