]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud.cxx
Migrate FlightGear code to use "#include SG_GL*" defined in
[flightgear.git] / src / Cockpit / hud.cxx
index 110d982b03aa24b1793e1dde042866ca5d0b7723..268bb943a257295ea486606ffda2b2453887e0dc 100644 (file)
@@ -44,7 +44,7 @@
 #include <stdio.h>             // char related functions
 #include <string.h>            // strcmp()
 
-#include <GL/glu.h>
+#include SG_GLU_H
 
 #include <simgear/constants.h>
 #include <simgear/debug/logstream.hxx>
@@ -455,6 +455,7 @@ readLabel(const SGPropertyNode * node)
         }
     }
 
+#ifdef ENABLE_SP_FMDS
     if ( loadfn== "aux1" ) {
         load_fn = get_aux1;
     } else if ( loadfn == "aux2" ) {
@@ -491,7 +492,9 @@ readLabel(const SGPropertyNode * node)
         load_fn = get_aux17;
     } else if ( loadfn == "aux18" ) {
         load_fn = get_aux18;
-    } else if ( loadfn == "ax" ) {
+    } else
+#endif
+      if ( loadfn == "ax" ) {
         load_fn = get_Ax;
     } else if ( loadfn == "speed" ) {
         load_fn = get_speed;