]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.cxx
Fix my mailing address by replacing it with my web page.
[flightgear.git] / src / Cockpit / panel.cxx
index 871ca97f3971d2f0fa9720cb0a754a9d71119eba..4134c196cfa91f498c134949798c357a7ac19d83 100644 (file)
 #include <stdio.h>     // sprintf
 #include <string.h>
 
+#include <simgear/compiler.h>
+
+#include SG_GLU_H
+
 #include <plib/ssg.h>
 #include <plib/fnt.h>
 
@@ -1118,7 +1122,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;
     }