diff options
author | yang-g <yangg@google.com> | 2016-07-19 14:46:50 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-07-19 14:46:50 -0700 |
commit | e6c04aa6126d3de7e27c86b2086b00d5353011ed (patch) | |
tree | 86853796b0db2965df7b4674d62a15ca8698dc86 /include | |
parent | 2eebe29ec84ed6b2d5c64016b12e1782281d5a38 (diff) |
Add a macro to support protobuf lite
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/impl/codegen/config_protobuf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/config_protobuf.h b/include/grpc++/impl/codegen/config_protobuf.h index 4bee1bc422..e1198f0ea0 100644 --- a/include/grpc++/impl/codegen/config_protobuf.h +++ b/include/grpc++/impl/codegen/config_protobuf.h @@ -40,9 +40,14 @@ #endif #ifndef GRPC_CUSTOM_MESSAGE +#ifdef GRPC_USE_PROTO_LITE +#include <google/protobuf/message_lite.h> +#define GRPC_CUSTOM_MESSAGE ::google::protobuf::MessageLite +#else #include <google/protobuf/message.h> #define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message #endif +#endif #ifndef GRPC_CUSTOM_DESCRIPTOR #include <google/protobuf/descriptor.h> |