+/*
+ * Use inline functions if we are allowed to and the compiler supports them.
+ */
+#if !defined(_DONT_USE_CTYPE_INLINE_) && \
+ (defined(_USE_CTYPE_INLINE_) || defined(__GNUC__) || defined(__cplusplus))
+
+__DARWIN_WCTYPE_TOP_inline int
+iswblank(wint_t _wc)
+{
+ return (__istype(_wc, _CTYPE_B));
+}
+
+#if !defined(_ANSI_SOURCE)
+__DARWIN_WCTYPE_TOP_inline int
+iswascii(wint_t _wc)
+{
+ return ((_wc & ~0x7F) == 0);
+}
+
+__DARWIN_WCTYPE_TOP_inline int
+iswhexnumber(wint_t _wc)
+{
+ return (__istype(_wc, _CTYPE_X));
+}
+
+__DARWIN_WCTYPE_TOP_inline int
+iswideogram(wint_t _wc)
+{
+ return (__istype(_wc, _CTYPE_I));
+}
+
+__DARWIN_WCTYPE_TOP_inline int
+iswnumber(wint_t _wc)
+{
+ return (__istype(_wc, _CTYPE_D));
+}
+
+__DARWIN_WCTYPE_TOP_inline int
+iswphonogram(wint_t _wc)
+{
+ return (__istype(_wc, _CTYPE_Q));
+}
+
+__DARWIN_WCTYPE_TOP_inline int
+iswrune(wint_t _wc)
+{
+ return (__istype(_wc, 0xFFFFFFF0L));
+}
+
+__DARWIN_WCTYPE_TOP_inline int
+iswspecial(wint_t _wc)
+{
+ return (__istype(_wc, _CTYPE_T));
+}
+#endif /* !_ANSI_SOURCE */
+
+#else /* not using inlines */
+