From 4e233a1a4653699bda751ef38923c7d755093d2c Mon Sep 17 00:00:00 2001 From: Yang Gao <yangg@google.com> Date: Tue, 3 Mar 2015 09:17:41 -0800 Subject: [PATCH] Add macros --- include/grpc++/config.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/include/grpc++/config.h b/include/grpc++/config.h index cfa8d3be9f..e753e4f976 100644 --- a/include/grpc++/config.h +++ b/include/grpc++/config.h @@ -34,7 +34,6 @@ #ifndef GRPCXX_CONFIG_H #define GRPCXX_CONFIG_H -#include <string> #ifdef GRPC_OLD_CXX #define GRPC_FINAL @@ -44,9 +43,23 @@ #define GRPC_OVERRIDE override #endif +#ifndef GRPC_CUSTOM_STRING +#include <string> +#define GRPC_CUSTOM_STRING std::string +#endif + +#ifndef GRPC_CUSTOM_MESSAGE +#include <google/protobuf/message.h> +#define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message +#endif + namespace grpc { -typedef std::string string; +typedef GRPC_CUSTOM_STRING string; + +namespace protobuf { +typedef GRPC_CUSTOM_MESSAGE Message; +} // namespace protobuf } // namespace grpc -- GitLab