summaryrefslogtreecommitdiff
path: root/tests/general
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-06-30 16:12:09 -0700
committerVinson Lee <vlee@vmware.com>2009-06-30 16:12:09 -0700
commit64582bc78259a8fe11a8f023a9f12dc61440108f (patch)
tree06e1e2b2f132e749b80ea00a9ff254d9a07543cf /tests/general
parent6328d2370e582c7031f50d029148da3b96fab13d (diff)
Mac OS GLUT header fixes.
Include GLUT/glut.h on Mac OS.
Diffstat (limited to 'tests/general')
-rw-r--r--tests/general/dlist-clear.c4
-rw-r--r--tests/general/read-front.c4
-rw-r--r--tests/general/scissor-copypixels.c4
-rw-r--r--tests/general/scissor-depth-clear.c4
-rw-r--r--tests/general/scissor-stencil-clear.c4
5 files changed, 20 insertions, 0 deletions
diff --git a/tests/general/dlist-clear.c b/tests/general/dlist-clear.c
index 0170be62a..15ef25678 100644
--- a/tests/general/dlist-clear.c
+++ b/tests/general/dlist-clear.c
@@ -32,7 +32,11 @@
* with the new metaops clear code.
*/
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
#include "GL/glut.h"
+#endif
#include <string.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/general/read-front.c b/tests/general/read-front.c
index 75616426a..f18eb7ef7 100644
--- a/tests/general/read-front.c
+++ b/tests/general/read-front.c
@@ -35,7 +35,11 @@
* used as a draw buffer.
*/
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
#include "GL/glut.h"
+#endif
#include <string.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/general/scissor-copypixels.c b/tests/general/scissor-copypixels.c
index ddebc673b..24aed0475 100644
--- a/tests/general/scissor-copypixels.c
+++ b/tests/general/scissor-copypixels.c
@@ -30,7 +30,11 @@
* Tests that glScissor properly affects glCopyPixels().
*/
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
#include "GL/glut.h"
+#endif
#include <string.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/general/scissor-depth-clear.c b/tests/general/scissor-depth-clear.c
index edc099938..93bff5ecb 100644
--- a/tests/general/scissor-depth-clear.c
+++ b/tests/general/scissor-depth-clear.c
@@ -30,7 +30,11 @@
* Tests that glScissor properly affects glCopyPixels().
*/
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
#include "GL/glut.h"
+#endif
#include <string.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/general/scissor-stencil-clear.c b/tests/general/scissor-stencil-clear.c
index 00958fade..592c59106 100644
--- a/tests/general/scissor-stencil-clear.c
+++ b/tests/general/scissor-stencil-clear.c
@@ -30,7 +30,11 @@
* Tests that glScissor properly affects glCopyPixels().
*/
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
#include "GL/glut.h"
+#endif
#include <string.h>
#include <stdio.h>
#include <unistd.h>