summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1994-12-14 12:54:54 +0000
committerJack Jansen <jack.jansen@cwi.nl>1994-12-14 12:54:54 +0000
commitce4d07eea2068e98d30fc6e26bbbdee418b6e1fa (patch)
tree30a25d354dd10cb2214cb614558b444b0fd0e141 /Python/errors.c
parent5cc8e5778c50129f729f3dbceea1d354f551db9f (diff)
downloadcpython-ce4d07eea2068e98d30fc6e26bbbdee418b6e1fa.tar.gz
Added hook for better mac error messages.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 781710896c..bb3b605a81 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -60,6 +60,16 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#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));
/* Last exception stored by err_setval() */