From: ehofman Date: Fri, 20 Feb 2004 07:54:26 +0000 (+0000) Subject: Remove truncf() all together. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=32a17bf442da79747f11eeab5ed7fa0f3b8a511f;p=flightgear.git Remove truncf() all together. --- diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index 16d7b7792..871ca97f3 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -53,13 +53,6 @@ // my hardware/driver requires many more. #define POFF_UNITS 4 -#ifndef HAVE_TRUNCF -inline float truncf (float d) { - return (d < 0) ? -floorf(-d) : floorf(d); -} -#endif - - //////////////////////////////////////////////////////////////////////// // Local functions. //////////////////////////////////////////////////////////////////////// @@ -1125,7 +1118,7 @@ FGTextLayer::Chunk::getValue () const break; case DOUBLE_VALUE: double d = _offs + _node->getFloatValue() * _mult; - if (_trunc) d = truncf(d); + if (_trunc) d = (d < 0) ? -floorf(-d) : floorf(d); sprintf(_buf, _fmt.c_str(), d); break; }