]> granicus.if.org Git - python/commitdiff
Moved the Apple workaround for the guard define for wchar_t out of
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 28 Feb 2003 12:51:18 +0000 (12:51 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 28 Feb 2003 12:51:18 +0000 (12:51 +0000)
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).

Include/py_curses.h

index 9a89c50e7eb76303428c19d24caf52d7cf8f9520..713a24fadc31f973e728afc6f7926e9b56981e77 100644 (file)
@@ -2,7 +2,6 @@
 #ifndef Py_CURSES_H
 #define Py_CURSES_H
 
-#ifdef HAVE_NCURSES_H
 #ifdef __APPLE__
 /*
 ** On Mac OS X 10.2 [n]curses.h and stdlib.h use different guards
@@ -12,6 +11,8 @@
 #define _WCHAR_T
 #endif
 #endif
+
+#ifdef HAVE_NCURSES_H
 #include <ncurses.h>
 #else
 #include <curses.h>