From 7a3e749284d79b11951ec29beb81ce9ee93dd5ca Mon Sep 17 00:00:00 2001 From: david Date: Wed, 13 Feb 2002 23:57:49 +0000 Subject: [PATCH] JSBSim fix for FreeBSD. --- src/FDM/JSBSim/FGJSBBase.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/FDM/JSBSim/FGJSBBase.h b/src/FDM/JSBSim/FGJSBBase.h index e515a9162..0bdbc92ba 100644 --- a/src/FDM/JSBSim/FGJSBBase.h +++ b/src/FDM/JSBSim/FGJSBBase.h @@ -66,6 +66,17 @@ using std::queue; # define M_PI SG_PI #endif +#ifdef __FreeBSD__ // define gcvt on FreeBSD + +#include + +static char *gcvt(double number, size_t ndigit, char *buf) +{ + sprintf(buf, "%f", number); + return buf; +} +#endif + /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DEFINITIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ -- 2.39.5