[Python-checkins] python/dist/src/Include py_curses.h,1.7,1.8
aimacintyre@users.sourceforge.net
aimacintyre@users.sourceforge.net
Sun, 29 Jun 2003 08:46:23 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv14629
Modified Files:
py_curses.h
Log Message:
FreeBSD 5.x uses different wchar_t/win_t guards than earlier versions
Index: py_curses.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/py_curses.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** py_curses.h 11 Jun 2003 12:26:08 -0000 1.7
--- py_curses.h 29 Jun 2003 15:46:21 -0000 1.8
***************
*** 19,22 ****
--- 19,33 ----
*/
#ifdef _XOPEN_SOURCE_EXTENDED
+ #ifndef __FreeBSD_version
+ #include <osreldate.h>
+ #endif
+ #if __FreeBSD_version >= 500000
+ #ifndef __wchar_t
+ #define __wchar_t
+ #endif
+ #ifndef __wint_t
+ #define __wint_t
+ #endif
+ #else
#ifndef _WCHAR_T
#define _WCHAR_T
***************
*** 24,27 ****
--- 35,39 ----
#ifndef _WINT_T
#define _WINT_T
+ #endif
#endif
#endif