From: Guido van Rossum Date: Fri, 11 Apr 1997 19:18:23 +0000 (+0000) Subject: (Jack:) On the Mac, use standard strerror() if using MSL C-library. X-Git-Tag: v1.5a1~164 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6976a52099937bd3e855e7c9b8e1d3c75584b7f6;p=thirdparty%2FPython%2Fcpython.git (Jack:) On the Mac, use standard strerror() if using MSL C-library. --- diff --git a/Python/errors.c b/Python/errors.c index 68743bf427ca..526b61bba470 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -72,6 +72,7 @@ PERFORMANCE OF THIS SOFTWARE. #endif #ifdef macintosh +#ifndef __MSL__ /* Replace strerror with a Mac specific routine. XXX PROBLEM: some positive errors have a meaning for MacOS, but some library routines set Unix error numbers... @@ -79,6 +80,7 @@ PERFORMANCE OF THIS SOFTWARE. extern char *PyMac_StrError PROTO((int)); #undef strerror #define strerror PyMac_StrError +#endif #endif /* macintosh */ #ifndef __STDC__