diff --git a/curspriv.h b/curspriv.h index a5d1ac44..f3dc43d4 100644 --- a/curspriv.h +++ b/curspriv.h @@ -7,6 +7,10 @@ #define CURSES_LIBRARY #include +#ifdef __cplusplus +extern "C" { +#endif + #if defined(__TURBOC__) || defined(__EMX__) || defined(__DJGPP__) || \ defined(PDC_99) || defined(__WATCOMC__) # ifndef HAVE_VSSCANF @@ -119,4 +123,8 @@ size_t PDC_wcstombs(char *, const wchar_t *, size_t); #define _INBUFSIZ 512 /* size of terminal input buffer */ #define NUNGETCH 256 /* max # chars to ungetch() */ +#ifdef __cplusplus +} +#endif + #endif /* __CURSES_INTERNALS__ */