Skip to content
Snippets Groups Projects
Commit 98f47f61 authored by Nicolas Noble's avatar Nicolas Noble Committed by GitHub
Browse files

Merge pull request #7469 from yang-g/proto_lite

Add a macro to support protobuf lite
parents 466d8a6b e6c04aa6
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,14 @@ ...@@ -40,9 +40,14 @@
#endif #endif
#ifndef GRPC_CUSTOM_MESSAGE #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> #include <google/protobuf/message.h>
#define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message #define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message
#endif #endif
#endif
#ifndef GRPC_CUSTOM_DESCRIPTOR #ifndef GRPC_CUSTOM_DESCRIPTOR
#include <google/protobuf/descriptor.h> #include <google/protobuf/descriptor.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment