Merge pull request #132 from kklobe/allow-cpp-curspriv

Allow C++ compilation of curspriv.h
This commit is contained in:
William McBrine
2023-05-26 16:51:30 -04:00
committed by GitHub

View File

@@ -7,6 +7,10 @@
#define CURSES_LIBRARY
#include <curses.h>
#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__ */