diff options
-rw-r--r-- | Include/py_curses.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h index 713a24f..3ecf48f 100644 --- a/Include/py_curses.h +++ b/Include/py_curses.h @@ -12,6 +12,21 @@ #endif #endif +#ifdef __FreeBSD__ +/* +** On FreeBSD, [n]curses.h and stdlib.h/wchar.h use different guards +** against multiple definition of wchar_t and wint_t. +*/ +#ifdef _XOPEN_SOURCE_EXTENDED +#ifndef _WCHAR_T +#define _WCHAR_T +#endif +#ifndef _WINT_T +#define _WINT_T +#endif +#endif +#endif + #ifdef HAVE_NCURSES_H #include <ncurses.h> #else |