diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-07-21 11:13:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-21 11:13:53 -0700 |
commit | 98f47f61690a494d67f5e3cc6001277695652d26 (patch) | |
tree | eac9140c700ed2066e96cfe7e21cb167febef7f1 /include/grpc++ | |
parent | 466d8a6bc56f528dc744a0ebdfd8e37f28b5ec99 (diff) | |
parent | e6c04aa6126d3de7e27c86b2086b00d5353011ed (diff) |
Merge pull request #7469 from yang-g/proto_lite
Add a macro to support protobuf lite
Diffstat (limited to 'include/grpc++')
-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 318ba59683..6ab67721e5 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> |