summaryrefslogtreecommitdiffstats
path: root/include/wchar.h
diff options
context:
space:
mode:
authorDu Huanpeng <u74147@gmail.com>2016-04-13 20:35:18 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-14 08:07:13 +0200
commit556459f022d68ddd6ad87e68aef63c2dc52a8a43 (patch)
tree501232e81477f3dfa14ecf823ad9f3651234acc7 /include/wchar.h
parentb86834423f856aecf733ddc8c8c1fb1d075f8e6e (diff)
downloadbarebox-556459f022d68ddd6ad87e68aef63c2dc52a8a43.tar.gz
barebox-556459f022d68ddd6ad87e68aef63c2dc52a8a43.tar.xz
wchar_t: wchar_t should go to stddef.h
according to C99 standard, the definition of wchar_t should go stddef.h this patch also remove wchar_t local definition and use stddef.h instead. Signed-off-by: Du Huanpeng <u74147@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/wchar.h b/include/wchar.h
index 702d8e239a..adb4f373e9 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -2,8 +2,7 @@
#define __WCHAR_H
#include <linux/types.h>
-
-typedef u16 wchar_t;
+#include <linux/stddef.h>
wchar_t *strdup_wchar(const wchar_t *src);