Browse Source

Remove extern "C" since this is no longer a public header

Vijay Pai 7 năm trước cách đây
mục cha
commit
7ce8b94b69
1 tập tin đã thay đổi với 0 bổ sung8 xóa
  1. 0 8
      src/core/lib/gpr/host_port.h

+ 0 - 8
src/core/lib/gpr/host_port.h

@@ -21,10 +21,6 @@
 
 
 #include <grpc/support/port_platform.h>
 #include <grpc/support/port_platform.h>
 
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /** Given a host and port, creates a newly-allocated string of the form
 /** Given a host and port, creates a newly-allocated string of the form
    "host:port" or "[ho:st]:port", depending on whether the host contains colons
    "host:port" or "[ho:st]:port", depending on whether the host contains colons
    like an IPv6 literal.  If the host is already bracketed, then additional
    like an IPv6 literal.  If the host is already bracketed, then additional
@@ -44,8 +40,4 @@ int gpr_join_host_port(char** out, const char* host, int port);
    failure. */
    failure. */
 int gpr_split_host_port(const char* name, char** host, char** port);
 int gpr_split_host_port(const char* name, char** host, char** port);
 
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* GRPC_CORE_LIB_GPR_HOST_PORT_H */
 #endif /* GRPC_CORE_LIB_GPR_HOST_PORT_H */