aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-09 16:47:40 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-09 16:47:40 -0800
commit7630205bdfe2b7871e810f8ea7eab388d02240bf (patch)
tree89f63c8ea4448b04da822d93e2fd26b17f4064ed /include
parentc9df1cd391c77ea198ece7a3c5fae05b9a6f5abc (diff)
Add missing ifdef
Diffstat (limited to 'include')
-rw-r--r--include/grpc/support/cpu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc/support/cpu.h b/include/grpc/support/cpu.h
index f8ec2c6522..9025f7c21f 100644
--- a/include/grpc/support/cpu.h
+++ b/include/grpc/support/cpu.h
@@ -34,6 +34,10 @@
#ifndef __GRPC_INTERNAL_SUPPORT_CPU_H__
#define __GRPC_INTERNAL_SUPPORT_CPU_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Interface providing CPU information for currently running system */
/* Return the number of CPU cores on the current system. Will return 0 if
@@ -46,4 +50,8 @@ unsigned gpr_cpu_num_cores(void);
[0, gpr_cpu_num_cores() - 1] */
unsigned gpr_cpu_current_cpu(void);
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif /* __GRPC_INTERNAL_SUPPORT_CPU_H__ */