diff options
Diffstat (limited to 'libc/include')
| -rw-r--r-- | libc/include/sys/cdefs.h | 8 | ||||
| -rw-r--r-- | libc/include/wchar.h | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h index fe7033d..de1dc09 100644 --- a/libc/include/sys/cdefs.h +++ b/libc/include/sys/cdefs.h @@ -371,6 +371,14 @@ #define __link_set_entry(set, idx) (__link_set_begin(set)[idx]) +/* + * Some of the recend FreeBSD sources used in Bionic need this. + * Originally, this is used to embed the rcs versions of each source file + * in the generated binary. We certainly don't want this in Bionic. + */ +#define __FBSDID(s) struct __hack + + #define __BIONIC__ 1 #endif /* !_SYS_CDEFS_H_ */ diff --git a/libc/include/wchar.h b/libc/include/wchar.h index 97e1b5c..df456ef 100644 --- a/libc/include/wchar.h +++ b/libc/include/wchar.h @@ -70,9 +70,9 @@ typedef enum { WC_TYPE_MAX } wctype_t; -#define WCHAR_MAX 255 -#define WCHAR_MIN 0 -#define WEOF (-1) +#define WCHAR_MAX INT_MAX +#define WCHAR_MIN INT_MIN +#define WEOF ((wchar_t)(-1)) extern wint_t btowc(int); extern int fwprintf(FILE *, const wchar_t *, ...); |
