include: use extern "c++" for defining C++ code
PR-URL: https://github.com/libuv/libuv/pull/265 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
43ac8e17fe
commit
252f3624c2
@ -650,13 +650,13 @@ UV_EXTERN int uv_tty_reset_mode(void);
|
|||||||
UV_EXTERN int uv_tty_get_winsize(uv_tty_t*, int* width, int* height);
|
UV_EXTERN int uv_tty_get_winsize(uv_tty_t*, int* width, int* height);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
extern "C++" {
|
||||||
|
|
||||||
inline int uv_tty_set_mode(uv_tty_t* handle, int mode) {
|
inline int uv_tty_set_mode(uv_tty_t* handle, int mode) {
|
||||||
return uv_tty_set_mode(handle, static_cast<uv_tty_mode_t>(mode));
|
return uv_tty_set_mode(handle, static_cast<uv_tty_mode_t>(mode));
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" {
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
UV_EXTERN uv_handle_type uv_guess_handle(uv_file file);
|
UV_EXTERN uv_handle_type uv_guess_handle(uv_file file);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user