mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-32593: Drop FreeBSD 9 and older support (#5232)
Drop support of FreeBSD 9 and older.
This commit is contained in:
parent
b0a7a037b8
commit
13ff24582c
18 changed files with 23 additions and 108 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue