Skip to content
Snippets Groups Projects
Commit 4e233a1a authored by Yang Gao's avatar Yang Gao
Browse files

Add macros

parent c09bb7e6
Branches
Tags
No related merge requests found
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#ifndef GRPCXX_CONFIG_H #ifndef GRPCXX_CONFIG_H
#define GRPCXX_CONFIG_H #define GRPCXX_CONFIG_H
#include <string>
#ifdef GRPC_OLD_CXX #ifdef GRPC_OLD_CXX
#define GRPC_FINAL #define GRPC_FINAL
...@@ -44,9 +43,23 @@ ...@@ -44,9 +43,23 @@
#define GRPC_OVERRIDE override #define GRPC_OVERRIDE override
#endif #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 { namespace grpc {
typedef std::string string; typedef GRPC_CUSTOM_STRING string;
namespace protobuf {
typedef GRPC_CUSTOM_MESSAGE Message;
} // namespace protobuf
} // namespace grpc } // namespace grpc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment