summaryrefslogtreecommitdiffstats
path: root/include/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stddef.h')
-rw-r--r--include/stddef.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/stddef.h b/include/stddef.h
index 70af689..38a7736 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -40,15 +40,19 @@
typedef _BSD_PTRDIFF_T_ ptrdiff_t;
+#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_
-#ifndef _ANSI_SOURCE
-typedef _BSD_WCHAR_T_ rune_t;
-#endif
typedef _BSD_WCHAR_T_ wchar_t;
#undef _BSD_WCHAR_T_
#endif
OpenPOWER on IntegriCloud