MacOS uses end2end tests. therefore extern C needed

pull/13147/head
Yash Tibrewal 7 years ago
parent 5e42211e7f
commit 67c0effd32
  1. 8
      test/core/end2end/end2end_tests.h

@ -21,6 +21,10 @@
#include <grpc/grpc.h> #include <grpc/grpc.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct grpc_end2end_test_fixture grpc_end2end_test_fixture; typedef struct grpc_end2end_test_fixture grpc_end2end_test_fixture;
typedef struct grpc_end2end_test_config grpc_end2end_test_config; typedef struct grpc_end2end_test_config grpc_end2end_test_config;
@ -74,4 +78,8 @@ const grpc_slice* get_host_override_slice(const char* str,
void validate_host_override_string(const char* pattern, grpc_slice str, void validate_host_override_string(const char* pattern, grpc_slice str,
grpc_end2end_test_config config); grpc_end2end_test_config config);
#ifdef __cplusplus
}
#endif
#endif /* GRPC_TEST_CORE_END2END_END2END_TESTS_H */ #endif /* GRPC_TEST_CORE_END2END_END2END_TESTS_H */

Loading…
Cancel
Save