From: ehofman Date: Fri, 23 Jan 2004 18:05:05 +0000 (+0000) Subject: BSD doesn't have truncf(), it does have floorf() however X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=44108678f7a1d9c760a63c4a80605a4da328a513;p=flightgear.git BSD doesn't have truncf(), it does have floorf() however --- diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index 25d6066ca..63185884c 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -1119,7 +1119,7 @@ FGTextLayer::Chunk::getValue () const break; case DOUBLE_VALUE: double d = _offs + _node->getFloatValue() * _mult; - if (_trunc) d = truncf(d); + if (_trunc) d = floorf(d); sprintf(_buf, _fmt.c_str(), d); break; }