Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 5979:422960523286 legacy-trunk
Use strerror on the mac if using MSL (Jack).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 12 Aug 1997 14:51:52 +0000 |
| parents | b7871ca930ad |
| children | a2a1df0ca808 |
comparison
equal
deleted
inserted
replaced
| 5978:781eb49d2d66 | 5979:422960523286 |
|---|---|
| 36 #ifdef SYMANTEC__CFM68K__ | 36 #ifdef SYMANTEC__CFM68K__ |
| 37 #pragma lib_export on | 37 #pragma lib_export on |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 #ifdef macintosh | 40 #ifdef macintosh |
| 41 #ifndef __MSL__ | |
| 42 /* Replace strerror with a Mac specific routine. | |
| 43 XXX PROBLEM: some positive errors have a meaning for MacOS, | |
| 44 but some library routines set Unix error numbers... | |
| 45 */ | |
| 46 extern char *PyMac_StrError Py_PROTO((int)); | 41 extern char *PyMac_StrError Py_PROTO((int)); |
| 47 #undef strerror | 42 #undef strerror |
| 48 #define strerror PyMac_StrError | 43 #define strerror PyMac_StrError |
| 49 #endif | |
| 50 #endif /* macintosh */ | 44 #endif /* macintosh */ |
| 51 | 45 |
| 52 #ifndef __STDC__ | 46 #ifndef __STDC__ |
| 53 #ifndef MS_WINDOWS | 47 #ifndef MS_WINDOWS |
| 54 extern char *strerror Py_PROTO((int)); | 48 extern char *strerror Py_PROTO((int)); |
