- #ifdef __MACH__
- #include <ansi_prefix.mach.h>
- #include <msl_c_version.h>
- #include <stdint.h>
- #undef WCHAR_MAX
- #include <machine/ansi.h>
- #else
- #include <ansi_prefix.mac.h>
+
+ /* CW8.3+ has mbstate_t */
+ #if defined(__MACH__) && __MWERKS__ < 0x3003
+ typedef int mbstate_t;
+ #define _MBSTATE_T
+ #endif
+
+ /* CW8.3+ has ssize_t */
+ #if defined(__MACH__) && __MWERKS__ >= 0x3003
+ #define HAVE_SSIZE_T