summaryrefslogtreecommitdiffstats
path: root/include/wchar.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h
index a27fc54..df77b41 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -73,10 +73,12 @@
#define NULL 0
#endif
+#ifndef __cplusplus
#ifdef _BSD_WCHAR_T_
typedef _BSD_WCHAR_T_ wchar_t;
#undef _BSD_WCHAR_T_
#endif
+#endif
#ifdef _BSD_MBSTATE_T_
typedef _BSD_MBSTATE_T_ mbstate_t;
OpenPOWER on IntegriCloud