From 413a490f943dfb621e61021a40ac9b24b6121cd8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 2 Oct 2004 23:17:23 +0000 Subject: [PATCH] Metrowerks doesn't have isascii() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/wxchar.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 1ee5b6194a..285b5d4872 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -841,8 +841,12 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */ #define wxIsspace(c) ((((unsigned)c) < 128) && isspace(c)) #endif /* VC++ */ +#if defined(__MWERKS__) && !defined(isascii) + #define isascii(c) ((unsigned)(c) < 0x7f) +#endif + /* - we had goofed and defined wxIctrl() instead of (correct) wxIscntrl() in the + we had goofed and defined wxIsctrl() instead of (correct) wxIscntrl() in the initial versions of this header -- now it is too late to remove it so although we fixed the function/macro name above, still provide the backwards-compatible synonym. -- 2.47.2