summaryrefslogtreecommitdiff
path: root/builtin/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/stddef.h')
-rw-r--r--builtin/stddef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/stddef.h b/builtin/stddef.h
index 343b0f6adf..69fb1982c7 100644
--- a/builtin/stddef.h
+++ b/builtin/stddef.h
@@ -25,7 +25,10 @@ typedef __SIZE_TYPE__ ssize_t;
#ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int
#endif
+
+#ifndef __cplusplus
typedef __WCHAR_TYPE__ wchar_t;
+#endif
/* This macro definition is duplicated in compile_time_macros.h. It still needs
* to be defined here to support code that expects offsetof to be defined in the