summaryrefslogtreecommitdiffstats
path: root/Include/py_curses.h
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-06-29 15:46:21 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-06-29 15:46:21 (GMT)
commite3454afb2fe4c0b937f378d39fc96de5ee7d60e6 (patch)
tree853503b407061d57f5d6792ec6d276edd2892e21 /Include/py_curses.h
parent2b6220d88bd2a8821f44468ffc3cb59d60a296a4 (diff)
downloadcpython-e3454afb2fe4c0b937f378d39fc96de5ee7d60e6.zip
cpython-e3454afb2fe4c0b937f378d39fc96de5ee7d60e6.tar.gz
cpython-e3454afb2fe4c0b937f378d39fc96de5ee7d60e6.tar.bz2
FreeBSD 5.x uses different wchar_t/win_t guards than earlier versions
Diffstat (limited to 'Include/py_curses.h')
-rw-r--r--Include/py_curses.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h
index 3ecf48f..aaff4bd 100644
--- a/Include/py_curses.h
+++ b/Include/py_curses.h
@@ -18,6 +18,17 @@
** against multiple definition of wchar_t and wint_t.
*/
#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
#endif
@@ -26,6 +37,7 @@
#endif
#endif
#endif
+#endif
#ifdef HAVE_NCURSES_H
#include <ncurses.h>