]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud.cxx
Boris Koenig:
[flightgear.git] / src / Cockpit / hud.cxx
index 60b4a14aad9b247c20dea4b1ab1db200c48ca181..9212f6e5fcf408898c40fe0b7fddebc4dca0f924 100644 (file)
@@ -44,6 +44,8 @@
 #include <stdio.h>             // char related functions
 #include <string.h>            // strcmp()
 
+#include <GL/glu.h>
+
 #include <simgear/constants.h>
 #include <simgear/debug/logstream.hxx>
 #include <simgear/props/props.hxx>
@@ -453,6 +455,7 @@ readLabel(const SGPropertyNode * node)
         }
     }
 
+#ifdef ENABLE_SP_FMDS
     if ( loadfn== "aux1" ) {
         load_fn = get_aux1;
     } else if ( loadfn == "aux2" ) {
@@ -489,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;