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/lib/iomgr/socket_windows.h | |
parent | ac0c2d9036814b56a3f8d99d6f8cbafeed671eca (diff) |
Changes for C to C++. Adding extern C to header files for compatibility.
Diffstat (limited to 'src/core/lib/iomgr/socket_windows.h')
-rw-r--r-- | src/core/lib/iomgr/socket_windows.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/socket_windows.h b/src/core/lib/iomgr/socket_windows.h index 67dc4ca53e..a00a7615a3 100644 --- a/src/core/lib/iomgr/socket_windows.h +++ b/src/core/lib/iomgr/socket_windows.h @@ -28,6 +28,10 @@ #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/iomgr_internal.h" +#ifdef __cplusplus +extern "C" { +#endif + /* This holds the data for an outstanding read or write on a socket. The mutex to protect the concurrent access to that data is the one inside the winsocket wrapper. */ @@ -107,4 +111,8 @@ void grpc_socket_become_ready(grpc_exec_ctx *exec_ctx, grpc_winsocket *winsocket, grpc_winsocket_callback_info *ci); -#endif /* GRPC_CORE_LIB_IOMGR_SOCKET_WINDOWS_H */ +#ifdef __cplusplus +} +#endif + +#endif /* GRPC_CORE_LIB_IOMGR_SOCKET_WINDOWS_H */
\ No newline at end of file |