am 6a09cfd9: Merge "wchar.h: improve wchar_t support in Bionic" into kraken

Merge commit '6a09cfd9f916e3a60de707ff0806cdeb143d77a4' into gingerbread-plus-aosp

* commit '6a09cfd9f916e3a60de707ff0806cdeb143d77a4':
  wchar.h: improve wchar_t support in Bionic
This commit is contained in:
David 'Digit' Turner
2010-06-15 07:07:44 -07:00
committed by Android Git Automerger
35 changed files with 1683 additions and 127 deletions

View File

@@ -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_ */

View File

@@ -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 *, ...);