summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-06-05 14:07:35 +0800
committerEric Anholt <eric@anholt.net>2015-06-05 17:51:39 -0700
commita2a51904b0811510e90d8e6cf554de237b9205ab (patch)
tree89b8cf9ead563d7a94f7d99bf61203bf0c3cbca8 /test
parente9f68fe3a34e769ac2f3e5d4b92c1358edd7af5c (diff)
downloadlibepoxy-a2a51904b0811510e90d8e6cf554de237b9205ab.tar.gz
test/wgl_per_context_funcptrs.c: Fix build on Visual Studio
Ensure that we do __stdcall only after the return type, as Visual Studio will not like it otherwise.
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);