Fixed compilation issue on windows (avoid using cstring and use string.h instead).
diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp
index 500b322..33b5cbc 100644
--- a/src/lib_json/json_writer.cpp
+++ b/src/lib_json/json_writer.cpp
@@ -2,6 +2,7 @@
#include <utility>
#include <assert.h>
#include <stdio.h>
+#include <string.h>
#include <iostream>
#if _MSC_VER >= 1400 // VC++ 8.0
@@ -66,7 +67,7 @@
std::string valueToQuotedString( const char *value )
{
// Not sure how to handle unicode...
- if (std::strpbrk(value, "\"\\\b\f\n\r\t") == NULL)
+ if (strpbrk(value, "\"\\\b\f\n\r\t") == NULL)
return std::string("\"") + value + "\"";
// We have to walk value and escape any special characters.
// Appending to std::string is not efficient, but this should be rare.