summaryrefslogtreecommitdiffstats
path: root/include/inttypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/inttypes.h')
-rw-r--r--include/inttypes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/inttypes.h b/include/inttypes.h
index d2b86dd..3fe6fcc 100644
--- a/include/inttypes.h
+++ b/include/inttypes.h
@@ -33,9 +33,9 @@
#include <sys/stdint.h>
#ifndef __cplusplus
-#ifdef _BSD_WCHAR_T_
-typedef _BSD_WCHAR_T_ wchar_t;
-#undef _BSD_WCHAR_T_
+#ifndef _WCHAR_T_DECLARED
+typedef __wchar_t wchar_t;
+#define _WCHAR_T_DECLARED
#endif
#endif
OpenPOWER on IntegriCloud