diff options
author | ncteisen <ncteisen@gmail.com> | 2018-10-24 17:25:51 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-10-24 17:25:51 -0700 |
commit | 4fa389b1374be55b37da3cb272b346b0406e62ac (patch) | |
tree | be85c2748e51e2d7c1357d0170af90a442d4961d /include | |
parent | 482641501cd5ba0060b43b363efae2e9292cd938 (diff) |
Unifying grpc build hacks
Diffstat (limited to 'include')
-rw-r--r-- | include/grpcpp/impl/codegen/config_protobuf.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/grpcpp/impl/codegen/config_protobuf.h b/include/grpcpp/impl/codegen/config_protobuf.h index 598848ee9f..8c2e9e6792 100644 --- a/include/grpcpp/impl/codegen/config_protobuf.h +++ b/include/grpcpp/impl/codegen/config_protobuf.h @@ -66,8 +66,9 @@ #define GRPC_CUSTOM_CODEDINPUTSTREAM ::google::protobuf::io::CodedInputStream #endif -#ifndef GRPC_CUSTOM_UTIL_STATUS +#ifndef GRPC_CUSTOM_JSONUTIL #include <google/protobuf/util/json_util.h> +#define GRPC_CUSTOM_JSONUTIL ::google::protobuf::util #define GRPC_CUSTOM_UTIL_STATUS ::google::protobuf::util::Status #endif @@ -90,15 +91,10 @@ typedef GRPC_CUSTOM_SOURCELOCATION SourceLocation; namespace util { typedef GRPC_CUSTOM_UTIL_STATUS Status; - -inline util::Status JsonStringToMessage(const std::string& input, - Message* message) { - return ::google::protobuf::util::JsonStringToMessage( - input, message, ::google::protobuf::util::JsonParseOptions()); -} - } // namespace util +namespace json = GRPC_CUSTOM_JSONUTIL; + namespace io { typedef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM ZeroCopyOutputStream; typedef GRPC_CUSTOM_ZEROCOPYINPUTSTREAM ZeroCopyInputStream; |