X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fpanel.cxx;h=4134c196cfa91f498c134949798c357a7ac19d83;hb=d05121ef4689d2b50b3fe1848cbb0d1f5a1db877;hp=871ca97f3971d2f0fa9720cb0a754a9d71119eba;hpb=32a17bf442da79747f11eeab5ed7fa0f3b8a511f;p=flightgear.git diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index 871ca97f3..4134c196c 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -29,6 +29,10 @@ #include // sprintf #include +#include + +#include SG_GLU_H + #include #include @@ -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; }