From 5af2bb705ef9549c757751a5aa70fd1692f836c6 Mon Sep 17 00:00:00 2001 From: Kirk Klobe Date: Wed, 27 Apr 2022 14:47:37 -0500 Subject: [PATCH] Allow C++ compilation of curspriv.h --- curspriv.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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__ */