]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a bug reported by Frederic Bouvier:
authordavid <david>
Wed, 3 Jul 2002 04:09:27 +0000 (04:09 +0000)
committerdavid <david>
Wed, 3 Jul 2002 04:09:27 +0000 (04:09 +0000)
GL/gl.h can't be included at the first position in windows. It requires
the inclusion of windows.h that must be included in other fgfs header
file. I only move down #include <GL/gl.h>

src/Model/panelnode.cxx

index e49f3197bcb92914759d817bdb8ef05b41dd749c..5b979f6aa79e27157c4372aa15ffb4a07f5e59a4 100644 (file)
@@ -1,7 +1,11 @@
-#include <GL/gl.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <Main/fg_props.hxx>
 #include <Cockpit/panel.hxx>
 #include <Cockpit/panel_io.hxx>
+#include <GL/gl.h>
 #include "panelnode.hxx"
 
 FGPanelNode::FGPanelNode(SGPropertyNode* props)