From 6649009ffa0724f949c684f1f1d7954d42e7372b Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Tue, 28 Apr 2015 04:57:49 +0100 Subject: [PATCH] another fix for BORLANDC --- src/lib_json/json_writer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp index 66ca217..ba07b07 100644 --- a/src/lib_json/json_writer.cpp +++ b/src/lib_json/json_writer.cpp @@ -33,6 +33,12 @@ #define snprintf std::snprintf #endif +#if defined(__BORLANDC__) +#include +#define isfinite _finite +#define snprintf _snprintf +#endif + #if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0 // Disable warning about strdup being deprecated. #pragma warning(disable : 4996)