]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.cxx
Oops. A change to an upstream header seems to have remove glu.h, which
[flightgear.git] / src / Cockpit / panel.cxx
index 871ca97f3971d2f0fa9720cb0a754a9d71119eba..09194ef12de8cc31178e675b7a994227a78dd98b 100644 (file)
@@ -29,6 +29,8 @@
 #include <stdio.h>     // sprintf
 #include <string.h>
 
+#include <GL/glu.h>
+
 #include <plib/ssg.h>
 #include <plib/fnt.h>
 
@@ -1118,7 +1120,7 @@ FGTextLayer::Chunk::getValue () const
       break;
     case DOUBLE_VALUE:
       double d = _offs + _node->getFloatValue() * _mult;
-      if (_trunc)  d = (d < 0) ? -floorf(-d) : floorf(d);
+      if (_trunc)  d = (d < 0) ? -floor(-d) : floor(d);
       sprintf(_buf, _fmt.c_str(), d);
       break;
     }