summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 3f1d648..069656d 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -38,15 +38,19 @@
#include <machine/ansi.h>
+#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
+#ifdef _BSD_RUNE_T_
+typedef _BSD_RUNE_T_ rune_t;
+#undef _BSD_RUNE_T_
+#endif
+#endif
+
#ifdef _BSD_SIZE_T_
typedef _BSD_SIZE_T_ size_t;
#undef _BSD_SIZE_T_
#endif
#ifdef _BSD_WCHAR_T_
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
-typedef _BSD_WCHAR_T_ rune_t;
-#endif
typedef _BSD_WCHAR_T_ wchar_t;
#undef _BSD_WCHAR_T_
#endif
OpenPOWER on IntegriCloud