summaryrefslogtreecommitdiffstats
path: root/Include/py_curses.h
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-06-11 12:26:08 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-06-11 12:26:08 (GMT)
commit1a90117880b73294773c7975a3d0e66cdebf3b99 (patch)
tree71e426224d438b9d08ffc6547d141b58af07c36f /Include/py_curses.h
parent7e902b27e062fdcab71fa1876d99d32bf5190279 (diff)
downloadcpython-1a90117880b73294773c7975a3d0e66cdebf3b99.zip
cpython-1a90117880b73294773c7975a3d0e66cdebf3b99.tar.gz
cpython-1a90117880b73294773c7975a3d0e66cdebf3b99.tar.bz2
fix the curses module build failure on FreeBSD, reported in SF #740234.
Diffstat (limited to 'Include/py_curses.h')
-rw-r--r--Include/py_curses.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h
index 713a24f..3ecf48f 100644
--- a/Include/py_curses.h
+++ b/Include/py_curses.h
@@ -12,6 +12,21 @@
#endif
#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>
#else