summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-05-26 04:51:13 -0700
committerVinson Lee <vlee@vmware.com>2010-05-26 04:52:56 -0700
commit5a8d7ecbfc66cfe0a99ecb1c7e1969476ea6a6fe (patch)
tree81acce0eca71a872350c7abb456f6bb708cc6490 /tests
parent6d35205ea2efca690cdbaa252a532e6932b04945 (diff)
timer_query: Add symbol definitions for older distros.
Fixes build on Ubuntu 9.10.
Diffstat (limited to 'tests')
-rw-r--r--tests/general/timer_query.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/general/timer_query.c b/tests/general/timer_query.c
index e5b9619bb..0c51b2938 100644
--- a/tests/general/timer_query.c
+++ b/tests/general/timer_query.c
@@ -32,6 +32,22 @@
*/
#include "piglit-util.h"
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+#ifndef APIENTRYP
+#define APIENTRYP APIENTRY *
+#endif
+#ifndef ARB_sync
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+#endif
+#ifndef GL_ARB_timer_query
+#define GL_TIME_ELAPSED 0x88BF
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
+#endif
int piglit_width = 180, piglit_height = 100;
int piglit_window_mode = GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH;