]> git.saurik.com Git - wxWidgets.git/commitdiff
Metrowerks doesn't have isascii()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 2 Oct 2004 23:17:23 +0000 (23:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 2 Oct 2004 23:17:23 +0000 (23:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxchar.h

index 1ee5b6194ac1c161f79ae5738375b5a6bf2b0355..285b5d4872ad4913824cd66f6f6d8cf61f114325 100644 (file)
@@ -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.