From 252f3624c25415b875a194034503f9a124aa6bf6 Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Thu, 12 Mar 2015 20:30:37 +0900 Subject: [PATCH] include: use `extern "c++"` for defining C++ code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/libuv/libuv/pull/265 Reviewed-By: Ben Noordhuis Reviewed-By: Saúl Ibarra Corretgé --- include/uv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uv.h b/include/uv.h index bcc9e13c5..16f82ced7 100644 --- a/include/uv.h +++ b/include/uv.h @@ -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); #ifdef __cplusplus -} /* extern "C" */ +extern "C++" { inline int uv_tty_set_mode(uv_tty_t* handle, int mode) { return uv_tty_set_mode(handle, static_cast(mode)); } -extern "C" { +} #endif UV_EXTERN uv_handle_type uv_guess_handle(uv_file file);