Fixup for Windows build concerning GLEWAPIENTRY

This commit is contained in:
Nigel Stewart 2012-05-04 14:54:08 -05:00
parent a6423f4d98
commit b850a88492
3 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -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;

View File

@ -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);