From b850a88492909b651ce3cb3366e61ddc682603d4 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 4 May 2012 14:54:08 -0500 Subject: [PATCH] Fixup for Windows build concerning GLEWAPIENTRY --- auto/src/glew_init_tail.c | 6 +++--- auto/src/glew_str_head.c | 2 +- auto/src/glew_tail.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/auto/src/glew_init_tail.c b/auto/src/glew_init_tail.c index 03afcba..8a1b045 100644 --- a/auto/src/glew_init_tail.c +++ b/auto/src/glew_init_tail.c @@ -1,6 +1,6 @@ /* ------------------------------------------------------------------------ */ -const GLubyte* glewGetErrorString (GLenum error) +const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error) { static const GLubyte* _glewErrorString[] = { @@ -14,7 +14,7 @@ const GLubyte* glewGetErrorString (GLenum error) return _glewErrorString[(int)error > max_error ? max_error : (int)error]; } -const GLubyte* glewGetString (GLenum name) +const GLubyte * GLEWAPIENTRY glewGetString (GLenum name) { static const GLubyte* _glewString[] = { @@ -40,7 +40,7 @@ extern GLenum wglewContextInit (void); extern GLenum glxewContextInit (void); #endif /* _WIN32 */ -GLenum glewInit (void) +GLenum GLEWAPIENTRY glewInit (void) { GLenum r; r = glewContextInit(); diff --git a/auto/src/glew_str_head.c b/auto/src/glew_str_head.c index 431f34c..190205d 100644 --- a/auto/src/glew_str_head.c +++ b/auto/src/glew_str_head.c @@ -1,7 +1,7 @@ #ifdef GLEW_MX GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name) #else -GLboolean glewIsSupported (const char* name) +GLboolean GLEWAPIENTRY glewIsSupported (const char* name) #endif { GLubyte* pos = (GLubyte*)name; diff --git a/auto/src/glew_tail.h b/auto/src/glew_tail.h index 6cfbf4c..a6a9439 100644 --- a/auto/src/glew_tail.h +++ b/auto/src/glew_tail.h @@ -42,7 +42,7 @@ GLEWAPI GLboolean GLEWAPIENTRY glewIsSupported (const char *name); #endif /* GLEW_MX */ -GLEWAPI GLboolean GLEWAPIENTRY glewExperimental; +GLEWAPI GLboolean glewExperimental; GLEWAPI GLboolean GLEWAPIENTRY glewGetExtension (const char *name); GLEWAPI const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error); GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);