[Python-checkins] python/dist/src/Include py_curses.h,1.6,1.7

aimacintyre@users.sourceforge.net aimacintyre@users.sourceforge.net
Wed, 11 Jun 2003 05:26:11 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv20578

Modified Files:
	py_curses.h 
Log Message:
fix the curses module build failure on FreeBSD, reported in SF #740234.


Index: py_curses.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/py_curses.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** py_curses.h	28 Feb 2003 12:51:18 -0000	1.6
--- py_curses.h	11 Jun 2003 12:26:08 -0000	1.7
***************
*** 13,16 ****
--- 13,31 ----
  #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>