Skip to content

Commit

Permalink
(Jack:) On the Mac, use standard strerror() if using MSL C-library.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Apr 11, 1997
1 parent 2d45be1 commit 6976a52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,15 @@ 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...
*/
extern char *PyMac_StrError PROTO((int));
#undef strerror
#define strerror PyMac_StrError
#endif
#endif /* macintosh */

#ifndef __STDC__
Expand Down

0 comments on commit 6976a52

Please sign in to comment.