Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 5312:d0eb183092b0 legacy-trunk
(Jack:) On the Mac, use standard strerror() if using MSL C-library.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 11 Apr 1997 19:18:23 +0000 |
| parents | ca6388bcc05a |
| children | 2c4b802a3b5d |
comparison
equal
deleted
inserted
replaced
| 5311:782597cf6151 | 5312:d0eb183092b0 |
|---|---|
| 70 #ifdef SYMANTEC__CFM68K__ | 70 #ifdef SYMANTEC__CFM68K__ |
| 71 #pragma lib_export on | 71 #pragma lib_export on |
| 72 #endif | 72 #endif |
| 73 | 73 |
| 74 #ifdef macintosh | 74 #ifdef macintosh |
| 75 #ifndef __MSL__ | |
| 75 /* Replace strerror with a Mac specific routine. | 76 /* Replace strerror with a Mac specific routine. |
| 76 XXX PROBLEM: some positive errors have a meaning for MacOS, | 77 XXX PROBLEM: some positive errors have a meaning for MacOS, |
| 77 but some library routines set Unix error numbers... | 78 but some library routines set Unix error numbers... |
| 78 */ | 79 */ |
| 79 extern char *PyMac_StrError PROTO((int)); | 80 extern char *PyMac_StrError PROTO((int)); |
| 80 #undef strerror | 81 #undef strerror |
| 81 #define strerror PyMac_StrError | 82 #define strerror PyMac_StrError |
| 83 #endif | |
| 82 #endif /* macintosh */ | 84 #endif /* macintosh */ |
| 83 | 85 |
| 84 #ifndef __STDC__ | 86 #ifndef __STDC__ |
| 85 extern char *strerror PROTO((int)); | 87 extern char *strerror PROTO((int)); |
| 86 #endif | 88 #endif |
