1
0
Fork 0

JSBSim fix for FreeBSD.

This commit is contained in:
david 2002-02-13 23:57:49 +00:00
parent ecccc91064
commit 7a3e749284

View file

@ -66,6 +66,17 @@ using std::queue;
# define M_PI SG_PI
#endif
#ifdef __FreeBSD__ // define gcvt on FreeBSD
#include <stdio.h>
static char *gcvt(double number, size_t ndigit, char *buf)
{
sprintf(buf, "%f", number);
return buf;
}
#endif
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DEFINITIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/