Add a macro to support protobuf lite

pull/7469/head
yang-g 9 years ago
parent 2eebe29ec8
commit e6c04aa612
  1. 5
      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>

Loading…
Cancel
Save