diff --git a/src/Instrumentation/render_area_2d.cxx b/src/Instrumentation/render_area_2d.cxx
index 01a0ee0..776185d 100644
--- a/src/Instrumentation/render_area_2d.cxx
+++ b/src/Instrumentation/render_area_2d.cxx
@@ -30,7 +30,8 @@
 #   include <windows.h>
 #endif
 
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+#include SG_GL_H
 
 #include "render_area_2d.hxx"
 
