diff Python/errors.c @ 2019:9e3469c0ed75 legacy-trunk

Added hook for better mac error messages.
author Jack Jansen <jack.jansen@cwi.nl>
date Wed, 14 Dec 1994 12:54:54 +0000
parents a70883803338
children d7e91437f0a2
line wrap: on
line diff
--- a/Python/errors.c	Mon Dec 12 20:38:05 1994 +0000
+++ b/Python/errors.c	Wed Dec 14 12:54:54 1994 +0000
@@ -60,6 +60,16 @@
 
 #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() */