Skip to content

Commit

Permalink
Add macros
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-g committed Mar 3, 2015
1 parent c09bb7e commit 4e233a1
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions include/grpc++/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#ifndef GRPCXX_CONFIG_H
#define GRPCXX_CONFIG_H

#include <string>

#ifdef GRPC_OLD_CXX
#define GRPC_FINAL
Expand All @@ -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

Expand Down

0 comments on commit 4e233a1

Please sign in to comment.