We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80497f1 commit 7020451Copy full SHA for 7020451
src/lib_json/json_writer.cpp
@@ -16,7 +16,7 @@
16
#include <cstring>
17
#include <cstdio>
18
19
-#if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below
+#if defined(_MSC_VER) && _MSC_VER >= 1200 // VC++ 6.0 and above
20
#include <float.h>
21
#define isfinite _finite
22
#define snprintf _snprintf
@@ -28,6 +28,11 @@
28
#define isfinite std::isfinite
29
#endif
30
31
+#if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below
32
+#include <float.h>
33
+#define snprintf _snprintf
34
+#endif
35
+
36
#if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0
37
// Disable warning about strdup being deprecated.
38
#pragma warning(disable : 4996)
0 commit comments