From 44108678f7a1d9c760a63c4a80605a4da328a513 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 23 Jan 2004 18:05:05 +0000 Subject: [PATCH] BSD doesn't have truncf(), it does have floorf() however --- src/Cockpit/panel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5