summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-05-18 20:20:16 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-05-23 21:57:10 -0700
commite6d4a0844f081a711d99e3fcafdd6712c646cdd9 (patch)
tree394162fc264fa2b7e9f0db4a1b3bacc8b4f4c7e7 /src
parentf63a777a4c025a0c074f42cbdf328cc5db30ef48 (diff)
piglit: Include glut_waffle.h if USE_WAFFLE is enabled
Reviewed-by: Pauli Nieminen <pauli.nieminen@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/piglit/glut_wrap.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/piglit/glut_wrap.h b/src/piglit/glut_wrap.h
index e28bac958..4f1c2f95a 100644
--- a/src/piglit/glut_wrap.h
+++ b/src/piglit/glut_wrap.h
@@ -42,7 +42,9 @@ extern "C" {
#include <windows.h>
#endif
-#ifdef USE_GLUT
+#if defined(USE_WAFFLE)
+# include <glut_waffle/glut_waffle.h>
+#elif defined(USE_GLUT)
# ifdef __APPLE__
# include <GLUT/glut.h>
@@ -58,9 +60,7 @@ extern "C" {
# include <GL/freeglut_ext.h>
# endif
# endif
-#endif
-
-#ifdef USE_EGLUT
+#elif defined(USE_EGLUT)
# include <glut_egl/glut_egl.h>
#endif