Add MessageLite type to grpc's config

pull/19091/head
kwasimensah 6 years ago committed by GitHub
parent 52dc1e62ee
commit 12ffbb8a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      include/grpcpp/impl/codegen/config_protobuf.h

@ -30,9 +30,11 @@
#ifdef GRPC_USE_PROTO_LITE #ifdef GRPC_USE_PROTO_LITE
#include <google/protobuf/message_lite.h> #include <google/protobuf/message_lite.h>
#define GRPC_CUSTOM_MESSAGE ::google::protobuf::MessageLite #define GRPC_CUSTOM_MESSAGE ::google::protobuf::MessageLite
#define GRPC_CUSTOM_MESSAGELITE ::google::protobuf::MessageLite
#else #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
#define GRPC_CUSTOM_MESSAGELITE ::google::protobuf::MessageLite
#endif #endif
#endif #endif
@ -76,6 +78,7 @@ namespace grpc {
namespace protobuf { namespace protobuf {
typedef GRPC_CUSTOM_MESSAGE Message; typedef GRPC_CUSTOM_MESSAGE Message;
typedef GRPC_CUSTOM_MESSAGE MessageLite;
typedef GRPC_CUSTOM_PROTOBUF_INT64 int64; typedef GRPC_CUSTOM_PROTOBUF_INT64 int64;
typedef GRPC_CUSTOM_DESCRIPTOR Descriptor; typedef GRPC_CUSTOM_DESCRIPTOR Descriptor;

Loading…
Cancel
Save