Commit 26897bf1 authored by Jack Jansen's avatar Jack Jansen

Fix for #641455: curses module doesn't build on MacOSX. It turns out the

system headers have two declarations for wchar_t, with different guard macros.

Not sure whether this is a bugfix candidate, that depends on what changed in the
curses module.
parent 44f602dd
...@@ -3,6 +3,15 @@ ...@@ -3,6 +3,15 @@
#define Py_CURSES_H #define Py_CURSES_H
#ifdef HAVE_NCURSES_H #ifdef HAVE_NCURSES_H
#ifdef __APPLE__
/*
** On Mac OS X 10.2 [n]curses.h and stdlib.h use different guards
** against multiple definition of wchar_t.
*/
#ifdef _BSD_WCHAR_T_DEFINED_
#define _WCHAR_T
#endif
#endif
#include <ncurses.h> #include <ncurses.h>
#else #else
#include <curses.h> #include <curses.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment