From 4736411ca5c96fb2e46abfea10cda62daacb1677 Mon Sep 17 00:00:00 2001
From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be>
Date: Thu, 22 Nov 2012 10:06:29 +0000
Subject: [PATCH] gmshPopplerWrapper.h : GL/gl.h include for other platforms
 than OS X

---
 Common/gmshPopplerWrapper.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Common/gmshPopplerWrapper.h b/Common/gmshPopplerWrapper.h
index 4d14f68d64..04e789a3ba 100644
--- a/Common/gmshPopplerWrapper.h
+++ b/Common/gmshPopplerWrapper.h
@@ -15,7 +15,11 @@
 #include <poppler/cpp/poppler-page.h>
 #include <poppler/cpp/poppler-image.h>
 #if defined(HAVE_OPENGL)
-#include<OpenGL/gl.h>
+#  if defined(__APPLE__) || defined(HAVE_OPENGL_GL_H)
+#    include <OpenGL/gl.h>
+#  else
+#    include <GL/gl.h>
+#  endif
 #endif
 
 class gmshPopplerWrapper {
-- 
GitLab