aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/config.h
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-03-03 09:17:41 -0800
committerGravatar Yang Gao <yangg@google.com>2015-03-03 09:17:41 -0800
commit4e233a1a4653699bda751ef38923c7d755093d2c (patch)
tree9058e272821901085fbf1386b7165331347a91c5 /include/grpc++/config.h
parentc09bb7e6017ce356db1552273d6c9fe70c7b57b0 (diff)
Add macros
Diffstat (limited to 'include/grpc++/config.h')
-rw-r--r--include/grpc++/config.h17
1 files 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