]> git.mxchange.org Git - flightgear.git/commitdiff
JSBSim fix for FreeBSD.
authordavid <david>
Wed, 13 Feb 2002 23:57:49 +0000 (23:57 +0000)
committerdavid <david>
Wed, 13 Feb 2002 23:57:49 +0000 (23:57 +0000)
src/FDM/JSBSim/FGJSBBase.h

index e515a91629f27d9988a1b17cc72c12e8f78f456a..0bdbc92ba1a6423295f2e5a84d443b15edb1c4a8 100644 (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
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/