From d779443f8677c9e135a090d0c57df9b8542e4841 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 4 May 2012 16:05:07 -0500 Subject: [PATCH] Fixups for GLEWAPIENTRY on Linux and Windows --- auto/src/glxew_tail.h | 8 ++++---- auto/src/wglew_tail.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/auto/src/glxew_tail.h b/auto/src/glxew_tail.h index a635c56..39e9953 100644 --- a/auto/src/glxew_tail.h +++ b/auto/src/glxew_tail.h @@ -3,8 +3,8 @@ #ifdef GLEW_MX typedef struct GLXEWContextStruct GLXEWContext; -extern GLenum glxewContextInit (GLXEWContext* ctx); -extern GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name); +GLEWAPI GLenum GLEWAPIENTRY glxewContextInit (GLXEWContext *ctx); +GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const GLXEWContext *ctx, const char *name); #define glxewInit() glxewContextInit(glxewGetContext()) #define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x) @@ -17,11 +17,11 @@ extern GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* n #define GLXEW_GET_VAR(x) (*(const GLboolean*)&x) #define GLXEW_GET_FUN(x) x -extern GLboolean glxewIsSupported (const char* name); +GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name); #endif /* GLEW_MX */ -extern GLboolean glxewGetExtension (const char* name); +GLEWAPI GLboolean GLEWAPIENTRY glxewGetExtension (const char *name); #ifdef __cplusplus } diff --git a/auto/src/wglew_tail.h b/auto/src/wglew_tail.h index d51b823..9bbe945 100644 --- a/auto/src/wglew_tail.h +++ b/auto/src/wglew_tail.h @@ -3,8 +3,8 @@ #ifdef GLEW_MX typedef struct WGLEWContextStruct WGLEWContext; -GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx); -GLEWAPI GLboolean wglewContextIsSupported (const WGLEWContext* ctx, const char* name); +GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (WGLEWContext *ctx); +GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx, const char *name); #define wglewInit() wglewContextInit(wglewGetContext()) #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x) @@ -17,11 +17,11 @@ GLEWAPI GLboolean wglewContextIsSupported (const WGLEWContext* ctx, const char* #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) #define WGLEW_GET_FUN(x) x -GLEWAPI GLboolean wglewIsSupported (const char* name); +GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name); #endif /* GLEW_MX */ -GLEWAPI GLboolean wglewGetExtension (const char* name); +GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char *name); #ifdef __cplusplus }