Skip to content

Commit

Permalink
Merge pull request grpc#7469 from yang-g/proto_lite
Browse files Browse the repository at this point in the history
Add a macro to support protobuf lite
  • Loading branch information
nicolasnoble authored Jul 21, 2016
2 parents 466d8a6 + e6c04aa commit 98f47f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/grpc++/impl/codegen/config_protobuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 98f47f6

Please sign in to comment.