Skip to content

Commit 252f362

Browse files
kazuhosaghul
authored andcommitted
include: use extern "c++" for defining C++ code
PR-URL: #265 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Saúl Ibarra Corretgé <[email protected]>
1 parent 43ac8e1 commit 252f362

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/uv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,13 +650,13 @@ UV_EXTERN int uv_tty_reset_mode(void);
650650
UV_EXTERN int uv_tty_get_winsize(uv_tty_t*, int* width, int* height);
651651

652652
#ifdef __cplusplus
653-
} /* extern "C" */
653+
extern "C++" {
654654

655655
inline int uv_tty_set_mode(uv_tty_t* handle, int mode) {
656656
return uv_tty_set_mode(handle, static_cast<uv_tty_mode_t>(mode));
657657
}
658658

659-
extern "C" {
659+
}
660660
#endif
661661

662662
UV_EXTERN uv_handle_type uv_guess_handle(uv_file file);

0 commit comments

Comments
 (0)