summaryrefslogtreecommitdiff
path: root/progs/tests
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-04 15:55:39 -0700
committerBrian Paul <brianp@vmware.com>2009-11-04 15:56:14 -0700
commit60c328db2d5f269267dac7cd64335ba005890fca (patch)
tree6b88e4d413bb3fdaffa3b9c983cb9f316f5c5c70 /progs/tests
parentf1b91ccc0839f5088b86c3fe81eed957c1f91293 (diff)
progs/tests: Fix MSVC build.
Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/shader_api.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/progs/tests/shader_api.c b/progs/tests/shader_api.c
index 6453856345..fa0a992540 100644
--- a/progs/tests/shader_api.c
+++ b/progs/tests/shader_api.c
@@ -8,6 +8,10 @@
#include <GL/glew.h>
#include <GL/glut.h>
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+
static void assert_test(const char *file, int line, int cond, const char *msg)
{
if (!cond)
@@ -42,7 +46,7 @@ static void assert_error_test(const char *file, int line, GLenum expect)
#define assert_error(err) assert_error_test(__FILE__, __LINE__, (err))
-static void check_status(GLuint id, GLenum pname, void (*query)(GLuint, GLenum, GLint *))
+static void check_status(GLuint id, GLenum pname, void (APIENTRY *query)(GLuint, GLenum, GLint *))
{
GLint status;