Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8fd2d94

Browse files
committed
Added hook for better mac error messages.
1 parent 7ae7768 commit 8fd2d94

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Python/errors.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6060

6161
#include <errno.h>
6262

63+
#ifdef macintosh
64+
/*
65+
** For the mac, there's a function macstrerror in macosmodule.c. We can't
66+
** call it strerror(), though, since that is already defined (for Think C)
67+
** in ANSI
68+
*/
69+
#define strerror macstrerror
70+
#include "macdefs.h" /* For CW to find EINTR */
71+
#endif /* macintosh */
72+
6373
extern char *strerror PROTO((int));
6474

6575
/* Last exception stored by err_setval() */

0 commit comments

Comments
 (0)