mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-29 04:10:53 +02:00
progs/tests: Fix MSVC build.
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
f1b91ccc08
commit
60c328db2d
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue