mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
FreeBSD 5.x uses different wchar_t/win_t guards than earlier versions
This commit is contained in:
parent
2b6220d88b
commit
e3454afb2f
1 changed files with 12 additions and 0 deletions
|
@ -18,6 +18,17 @@
|
||||||
** against multiple definition of wchar_t and wint_t.
|
** against multiple definition of wchar_t and wint_t.
|
||||||
*/
|
*/
|
||||||
#ifdef _XOPEN_SOURCE_EXTENDED
|
#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
|
#ifndef _WCHAR_T
|
||||||
#define _WCHAR_T
|
#define _WCHAR_T
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,6 +37,7 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_NCURSES_H
|
#ifdef HAVE_NCURSES_H
|
||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue