Skip to content

Commit

Permalink
Add a macro to support protobuf lite
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-g committed Jul 19, 2016
1 parent 2eebe29 commit e6c04aa
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 e6c04aa

Please sign in to comment.