diff options
author | Mark D. Roth <roth@google.com> | 2016-10-06 13:07:53 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-10-06 13:07:53 -0700 |
commit | 757e84ef1cfd50661cb8242debd7a7990448dde1 (patch) | |
tree | ebb291e1add74539d09efa535e230eb8f78c9925 /src/core | |
parent | 6f6f94fc92517b1487034e8d72be0b6779eb51ff (diff) |
Add 'extern "C"' to error.h.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/iomgr/error.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/error.h b/src/core/lib/iomgr/error.h index 7e2fd7a3bd..00ace8a7a9 100644 --- a/src/core/lib/iomgr/error.h +++ b/src/core/lib/iomgr/error.h @@ -40,6 +40,10 @@ #include <grpc/status.h> #include <grpc/support/time.h> +#ifdef __cplusplus +extern "C" { +#endif + /// Opaque representation of an error. /// Errors are refcounted objects that represent the result of an operation. /// Ownership laws: @@ -204,4 +208,8 @@ bool grpc_log_if_error(const char *what, grpc_error *error, const char *file, #define GRPC_LOG_IF_ERROR(what, error) \ grpc_log_if_error((what), (error), __FILE__, __LINE__) +#ifdef __cplusplus +} +#endif + #endif /* GRPC_CORE_LIB_IOMGR_ERROR_H */ |