mirror of
https://github.com/python/cpython.git
synced 2025-09-01 06:28:36 +00:00
Added hook for better mac error messages.
This commit is contained in:
parent
7ae7768890
commit
8fd2d94e37
1 changed files with 10 additions and 0 deletions
|
@ -60,6 +60,16 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#ifdef macintosh
|
||||||
|
/*
|
||||||
|
** For the mac, there's a function macstrerror in macosmodule.c. We can't
|
||||||
|
** call it strerror(), though, since that is already defined (for Think C)
|
||||||
|
** in ANSI
|
||||||
|
*/
|
||||||
|
#define strerror macstrerror
|
||||||
|
#include "macdefs.h" /* For CW to find EINTR */
|
||||||
|
#endif /* macintosh */
|
||||||
|
|
||||||
extern char *strerror PROTO((int));
|
extern char *strerror PROTO((int));
|
||||||
|
|
||||||
/* Last exception stored by err_setval() */
|
/* Last exception stored by err_setval() */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue