Commit b850a884 authored by Nigel Stewart's avatar Nigel Stewart
Browse files

Fixup for Windows build concerning GLEWAPIENTRY

parent a6423f4d
/* ------------------------------------------------------------------------ */
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();
......
#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;
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment