From: david Date: Wed, 13 Feb 2002 23:57:49 +0000 (+0000) Subject: JSBSim fix for FreeBSD. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a3e749284d79b11951ec29beb81ce9ee93dd5ca;p=flightgear.git JSBSim fix for FreeBSD. --- 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/