aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/gethostname.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-09-21 15:49:55 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-10-02 16:26:53 -0700
commit1c9b584a153ff592c92b6cf6baa620d8602a37cd (patch)
treed0b37f8e7536144d2f8549d48901e732093e81e6 /src/core/lib/iomgr/gethostname.h
parent53a47f09e2fe9755608eac9308a90d232fb1551f (diff)
Changes for C to C++. Adding extern C to header files for compatibility.
Diffstat (limited to 'src/core/lib/iomgr/gethostname.h')
-rw-r--r--src/core/lib/iomgr/gethostname.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/lib/iomgr/gethostname.h b/src/core/lib/iomgr/gethostname.h
index 4dcf50c591..9c6b9d8d42 100644
--- a/src/core/lib/iomgr/gethostname.h
+++ b/src/core/lib/iomgr/gethostname.h
@@ -19,16 +19,8 @@
#ifndef GRPC_CORE_LIB_IOMGR_GETHOSTNAME_H
#define GRPC_CORE_LIB_IOMGR_GETHOSTNAME_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Returns the hostname of the local machine.
// Caller takes ownership of result.
char *grpc_gethostname();
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* GRPC_CORE_LIB_IOMGR_GETHOSTNAME_H */ \ No newline at end of file
+#endif /* GRPC_CORE_LIB_IOMGR_GETHOSTNAME_H */