aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-11-25 04:43:57 +0800
committerchriseth <c@ethdev.com>2016-12-01 23:03:59 +0800
commite0d4a3d518dc742d94571ef1e16b3f95765ec62f (patch)
tree6c6ec4b6da0caa825fee9998dd7f425d361b4ed1 /libdevcore
parent1316c0c872f5b94a73456a8151188dfbef317fdc (diff)
downloaddexon-solidity-e0d4a3d518dc742d94571ef1e16b3f95765ec62f.tar.gz
dexon-solidity-e0d4a3d518dc742d94571ef1e16b3f95765ec62f.tar.zst
dexon-solidity-e0d4a3d518dc742d94571ef1e16b3f95765ec62f.zip
Fix emscripten build.
Diffstat (limited to 'libdevcore')
-rw-r--r--libdevcore/JSON.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdevcore/JSON.h b/libdevcore/JSON.h
index 7876dfb2..0d6e0d2e 100644
--- a/libdevcore/JSON.h
+++ b/libdevcore/JSON.h
@@ -28,13 +28,13 @@ namespace dev
{
/// Serialise the JSON object (@a _input) with identation
-std::string jsonPrettyPrint(Json::Value const& _input)
+inline std::string jsonPrettyPrint(Json::Value const& _input)
{
return Json::StyledWriter().write(_input);
}
/// Serialise theJ SON object (@a _input) without identation
-std::string jsonCompactPrint(Json::Value const& _input)
+inline std::string jsonCompactPrint(Json::Value const& _input)
{
Json::FastWriter writer;
writer.omitEndingLineFeed();