summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/wgl_per_context_funcptrs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/wgl_per_context_funcptrs.c b/test/wgl_per_context_funcptrs.c
index 6ed49df..c76c7b3 100644
--- a/test/wgl_per_context_funcptrs.c
+++ b/test/wgl_per_context_funcptrs.c
@@ -48,13 +48,13 @@
static HGLRC ctx1, ctx2, current_context;
static bool pass = true;
-#define OVERRIDE_API __declspec(dllexport) __stdcall
+#define OVERRIDE_API(type) __declspec(dllexport) type __stdcall
-OVERRIDE_API GLuint override_glCreateShader_ctx1(GLenum target);
-OVERRIDE_API GLuint override_glCreateShader_ctx2(GLenum target);
-OVERRIDE_API PROC override_wglGetProcAddress(LPCSTR name);
+OVERRIDE_API (GLuint) override_glCreateShader_ctx1(GLenum target);
+OVERRIDE_API (GLuint) override_glCreateShader_ctx2(GLenum target);
+OVERRIDE_API (PROC) override_wglGetProcAddress(LPCSTR name);
-OVERRIDE_API GLuint
+OVERRIDE_API (GLuint)
override_glCreateShader_ctx1(GLenum target)
{
if (current_context != ctx1) {
@@ -64,7 +64,7 @@ override_glCreateShader_ctx1(GLenum target)
return CREATESHADER_CTX1_VAL;
}
-OVERRIDE_API GLuint
+OVERRIDE_API (GLuint)
override_glCreateShader_ctx2(GLenum target)
{
if (current_context != ctx2) {
@@ -74,7 +74,7 @@ override_glCreateShader_ctx2(GLenum target)
return CREATESHADER_CTX2_VAL;
}
-OVERRIDE_API PROC
+OVERRIDE_API (PROC)
override_wglGetProcAddress(LPCSTR name)
{
assert(strcmp(name, "glCreateShader") == 0);