Kaydet (Commit) e5b40268 authored tarafından Guido van Rossum's avatar Guido van Rossum

Use strerror on the mac if using MSL (Jack).

üst 15974ad5
...@@ -38,15 +38,9 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -38,15 +38,9 @@ PERFORMANCE OF THIS SOFTWARE.
#endif #endif
#ifdef macintosh #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...
*/
extern char *PyMac_StrError Py_PROTO((int)); extern char *PyMac_StrError Py_PROTO((int));
#undef strerror #undef strerror
#define strerror PyMac_StrError #define strerror PyMac_StrError
#endif
#endif /* macintosh */ #endif /* macintosh */
#ifndef __STDC__ #ifndef __STDC__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment