Skip to content

Commit

Permalink
only require json to be built with c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
seandepagnier committed May 20, 2018
1 parent d53929c commit 1913354
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SET(PLUGIN_VERSION "${PLUGIN_VERSION_MAJOR}.${PLUGIN_VERSION_MINOR}.${PLUGIN_VER

INCLUDE("cmake/PluginConfigure.cmake")

ADD_DEFINITIONS( "--std=gnu++11" )
#ADD_DEFINITIONS( "--std=gnu++11" )

SET(SRC_PYPILOT
src/pypilot_pi.cpp
Expand Down
2 changes: 2 additions & 0 deletions src/jsoncpp/json/writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,10 @@ JSONCPP_STRING JSON_API valueToString(UInt value);
#endif // if defined(JSON_HAS_INT64)
JSONCPP_STRING JSON_API valueToString(LargestInt value);
JSONCPP_STRING JSON_API valueToString(LargestUInt value);
#if __cplusplus >= 201103L
JSONCPP_STRING JSON_API valueToString(double value, unsigned int precision = Value::defaultRealPrecision,
PrecisionType precisionType = PrecisionType::significantDigits);
#endif
JSONCPP_STRING JSON_API valueToString(bool value);
JSONCPP_STRING JSON_API valueToQuotedString(const char* value);

Expand Down

1 comment on commit 1913354

@seandepagnier
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how to do stdc++11 for msvc sorry. It would work fine with mingw. For now windows users can use older version of plugin with less features.

Please sign in to comment.