diff --git a/libweb3jsonrpc/WebThreeStubServerBase.cpp b/libweb3jsonrpc/WebThreeStubServerBase.cpp index fa273a0da..94c5cbd03 100644 --- a/libweb3jsonrpc/WebThreeStubServerBase.cpp +++ b/libweb3jsonrpc/WebThreeStubServerBase.cpp @@ -26,9 +26,11 @@ #include #include +#if ETH_SOLIDITY #include #include #include +#endif #include #include #include @@ -36,7 +38,7 @@ #include #include #include -#ifndef _MSC_VER +#if ETH_SERPENT #include #endif #include "WebThreeStubServerBase.h" @@ -620,8 +622,10 @@ Json::Value WebThreeStubServerBase::eth_getCompilers() { Json::Value ret(Json::arrayValue); ret.append("lll"); +#if SOLIDITY ret.append("solidity"); -#ifndef _MSC_VER +#endif +#if SERPENT ret.append("serpent"); #endif return ret; @@ -642,7 +646,7 @@ string WebThreeStubServerBase::eth_compileSerpent(string const& _code) { // TODO throw here jsonrpc errors string res; -#ifndef _MSC_VER +#if SERPENT try { res = toJS(dev::asBytes(::compile(_code))); @@ -663,6 +667,7 @@ string WebThreeStubServerBase::eth_compileSolidity(string const& _code) { // TOOD throw here jsonrpc errors string res; +#if SOLIDITY dev::solidity::CompilerStack compiler; try { @@ -678,6 +683,7 @@ string WebThreeStubServerBase::eth_compileSolidity(string const& _code) { cwarn << "Uncought solidity compilation exception"; } +#endif return res; }