diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-11-01 11:46:08 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-11-01 11:46:08 -0700 |
commit | b9306327958ab7a46d5b25dd2c64da9e12778026 (patch) | |
tree | 48b66599fc0a7dfb1f22a0ba27236f9d0d4df262 /test/core/util | |
parent | 11a518995ec0c0fd3d833e00d5ae67b7e446edbc (diff) |
objC needs C linkage
Diffstat (limited to 'test/core/util')
-rw-r--r-- | test/core/util/port.h | 8 | ||||
-rw-r--r-- | test/core/util/test_config.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/core/util/port.h b/test/core/util/port.h index 3a4cf4467a..602099dea6 100644 --- a/test/core/util/port.h +++ b/test/core/util/port.h @@ -19,6 +19,10 @@ #ifndef GRPC_TEST_CORE_UTIL_PORT_H #define GRPC_TEST_CORE_UTIL_PORT_H +#ifdef __cplusplus +extern "C" { +#endif + typedef struct grpc_pick_port_functions { int (*pick_unused_port_fn)(void); int (*pick_unused_port_or_die_fn)(void); @@ -41,4 +45,8 @@ void grpc_recycle_unused_port(int port); /** Request the family of pick_port functions in \a functions be used. */ void grpc_set_pick_port_functions(grpc_pick_port_functions functions); +#ifdef __cplusplus +} +#endif + #endif /* GRPC_TEST_CORE_UTIL_PORT_H */ diff --git a/test/core/util/test_config.h b/test/core/util/test_config.h index 619359bfab..9761f464f5 100644 --- a/test/core/util/test_config.h +++ b/test/core/util/test_config.h @@ -21,6 +21,10 @@ #include <grpc/support/time.h> +#ifdef __cplusplus +extern "C" { +#endif + extern int64_t g_fixture_slowdown_factor; extern int64_t g_poller_slowdown_factor; @@ -39,4 +43,8 @@ gpr_timespec grpc_timeout_milliseconds_to_deadline(int64_t time_ms); void grpc_test_init(int argc, char **argv); +#ifdef __cplusplus +} +#endif + #endif /* GRPC_TEST_CORE_UTIL_TEST_CONFIG_H */ |