diff options
author | Craig Tiller <ctiller@google.com> | 2015-01-12 16:40:51 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-01-12 16:40:51 -0800 |
commit | edd10d2596259e32d74ffd53ad62b9f0fe450b5e (patch) | |
tree | cd5650d99e463cd63b6bae244b750ecd6b4815ff /test/core/util/port.h | |
parent | f5371efe65a68738a904090a95b0725397a24a1e (diff) |
Make this file usable from C++
Diffstat (limited to 'test/core/util/port.h')
-rw-r--r-- | test/core/util/port.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/core/util/port.h b/test/core/util/port.h index d06f04731e..0ba895af43 100644 --- a/test/core/util/port.h +++ b/test/core/util/port.h @@ -34,6 +34,10 @@ #ifndef __GRPC_TEST_UTIL_PORT_H__ #define __GRPC_TEST_UTIL_PORT_H__ +#ifdef __cplusplus +extern "C" { +#endif + /* pick a port number that is currently unused by either tcp or udp. return 0 on failure. */ int grpc_pick_unused_port(); @@ -41,4 +45,8 @@ int grpc_pick_unused_port(); on failure. */ int grpc_pick_unused_port_or_die(); +#ifdef __cplusplus +} +#endif + #endif /* __GRPC_TEST_UTIL_PORT_H__ */ |