summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/include/stddef.h')
-rw-r--r--payloads/libpayload/include/stddef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/payloads/libpayload/include/stddef.h b/payloads/libpayload/include/stddef.h
index 18c22f02a8..e1273454c2 100644
--- a/payloads/libpayload/include/stddef.h
+++ b/payloads/libpayload/include/stddef.h
@@ -3,6 +3,13 @@
#include <arch/types.h>
+#ifndef __WCHAR_TYPE__
+#define __WCHAR_TYPE__ int
+#endif
+#ifndef __cplusplus
+typedef __WCHAR_TYPE__ wchar_t;
+#endif
+
#ifndef __SIZE_TYPE__
#define __SIZE_TYPE__ unsigned long
#endif