]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added hook for better mac error messages.
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 14 Dec 1994 12:54:54 +0000 (12:54 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 14 Dec 1994 12:54:54 +0000 (12:54 +0000)
Python/errors.c

index 781710896c5561027094f526fb8fcfa247a9bad5..bb3b605a819bc1da3cf67fc943c3ae39f241498c 100644 (file)
@@ -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() */