Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3454af

Browse files
author
Andrew MacIntyre
committed
FreeBSD 5.x uses different wchar_t/win_t guards than earlier versions
1 parent 2b6220d commit e3454af

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Include/py_curses.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@
1818
** against multiple definition of wchar_t and wint_t.
1919
*/
2020
#ifdef _XOPEN_SOURCE_EXTENDED
21+
#ifndef __FreeBSD_version
22+
#include <osreldate.h>
23+
#endif
24+
#if __FreeBSD_version >= 500000
25+
#ifndef __wchar_t
26+
#define __wchar_t
27+
#endif
28+
#ifndef __wint_t
29+
#define __wint_t
30+
#endif
31+
#else
2132
#ifndef _WCHAR_T
2233
#define _WCHAR_T
2334
#endif
@@ -26,6 +37,7 @@
2637
#endif
2738
#endif
2839
#endif
40+
#endif
2941

3042
#ifdef HAVE_NCURSES_H
3143
#include <ncurses.h>

0 commit comments

Comments
 (0)