diff options
author | 2017-09-20 18:56:37 -0700 | |
---|---|---|
committer | 2017-10-02 16:23:34 -0700 | |
commit | a7e6d65a4864422854117149a6e98ff80e492fa9 (patch) | |
tree | f45e79512522e1584a1f4d6f2ed25755fc97eb97 /src/core/ext/census/resource.h | |
parent | ac0c2d9036814b56a3f8d99d6f8cbafeed671eca (diff) |
Changes for C to C++. Adding extern C to header files for compatibility.
Diffstat (limited to 'src/core/ext/census/resource.h')
-rw-r--r-- | src/core/ext/census/resource.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/ext/census/resource.h b/src/core/ext/census/resource.h index b8bda2c72e..5f7ac2ad27 100644 --- a/src/core/ext/census/resource.h +++ b/src/core/ext/census/resource.h @@ -23,6 +23,10 @@ #include <grpc/grpc.h> #include "src/core/ext/census/gen/census.pb.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Internal representation of a resource. */ typedef struct { char *name; @@ -45,4 +49,8 @@ void shutdown_resources(void); from configuration files. */ int32_t define_resource(const resource *base); -#endif /* GRPC_CORE_EXT_CENSUS_RESOURCE_H */ +#ifdef __cplusplus +} +#endif + +#endif /* GRPC_CORE_EXT_CENSUS_RESOURCE_H */
\ No newline at end of file |