Xavier Chantry
2010-05-23 16:39:47 UTC
To quote Andrew Price on clang ML :
"Judging by the wording of the standard (wchar.h should be included in
wctype.h to provide wint_t, as I understand it) it looks like this is a
glibc quirk. I felt it was easier to bodge my code to include wchar.h
before wctype.h than to get this fixed but good luck to you if you
attempt to do so."
http://permalink.gmane.org/gmane.comp.compilers.clang.devel/7123
Signed-off-by: Xavier Chantry <***@gmail.com>
---
uchar.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/uchar.c b/uchar.c
index 5a99c57..6f342b0 100644
--- a/uchar.c
+++ b/uchar.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
+#include <wchar.h>
#include <wctype.h>
#include <ctype.h>
"Judging by the wording of the standard (wchar.h should be included in
wctype.h to provide wint_t, as I understand it) it looks like this is a
glibc quirk. I felt it was easier to bodge my code to include wchar.h
before wctype.h than to get this fixed but good luck to you if you
attempt to do so."
http://permalink.gmane.org/gmane.comp.compilers.clang.devel/7123
Signed-off-by: Xavier Chantry <***@gmail.com>
---
uchar.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/uchar.c b/uchar.c
index 5a99c57..6f342b0 100644
--- a/uchar.c
+++ b/uchar.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
+#include <wchar.h>
#include <wctype.h>
#include <ctype.h>
--
1.7.1
1.7.1