Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d00c13a

Browse files
committed
Moved the Apple workaround for the guard define for wchar_t out of
the #ifdef HAVE_NCURSES_H: the same problem exists on OSX 10.1 with a fink-installed curses (which uses curses.h as the include file name).
1 parent f4ecc75 commit d00c13a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Include/py_curses.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#ifndef Py_CURSES_H
33
#define Py_CURSES_H
44

5-
#ifdef HAVE_NCURSES_H
65
#ifdef __APPLE__
76
/*
87
** On Mac OS X 10.2 [n]curses.h and stdlib.h use different guards
@@ -12,6 +11,8 @@
1211
#define _WCHAR_T
1312
#endif
1413
#endif
14+
15+
#ifdef HAVE_NCURSES_H
1516
#include <ncurses.h>
1617
#else
1718
#include <curses.h>

0 commit comments

Comments
 (0)