summaryrefslogtreecommitdiffstats
path: root/Include/py_curses.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2018-01-22 17:32:50 (GMT)
committerGitHub <noreply@github.com>2018-01-22 17:32:50 (GMT)
commit13ff24582c99dfb439b1af7295b401415e7eb05b (patch)
tree6966d9e1247134dfee9db73b6b5a215bfa88baf4 /Include/py_curses.h
parentb0a7a037b8fde56b62f886d5188bced7776777b4 (diff)
downloadcpython-13ff24582c99dfb439b1af7295b401415e7eb05b.zip
cpython-13ff24582c99dfb439b1af7295b401415e7eb05b.tar.gz
cpython-13ff24582c99dfb439b1af7295b401415e7eb05b.tar.bz2
bpo-32593: Drop FreeBSD 9 and older support (#5232)
Drop support of FreeBSD 9 and older.
Diffstat (limited to 'Include/py_curses.h')
-rw-r--r--Include/py_curses.h34
1 files changed, 9 insertions, 25 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h
index 597f419..0eebc36 100644
--- a/Include/py_curses.h
+++ b/Include/py_curses.h
@@ -12,31 +12,15 @@
#endif
#endif /* __APPLE__ */
-#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 __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
-#ifndef _WINT_T
-#define _WINT_T
-#endif
-#endif
-#endif
+/* On FreeBSD, [n]curses.h and stdlib.h/wchar.h use different guards
+ against multiple definition of wchar_t and wint_t. */
+#if defined(__FreeBSD__) && defined(_XOPEN_SOURCE_EXTENDED)
+# ifndef __wchar_t
+# define __wchar_t
+# endif
+# ifndef __wint_t
+# define __wint_t
+# endif
#endif
#if !defined(HAVE_CURSES_IS_PAD) && defined(WINDOW_HAS_FLAGS)