summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-06-26 20:37:40 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-06-26 20:37:40 (GMT)
commit027f6722c4056f59f7baaabc082fd3ecabd1dd27 (patch)
treee69d4575d7b28e4dc2d364967011f13c79519c1c
parent440a36f3ab9ce28284408fd59f228ee13be9b587 (diff)
downloadcpython-027f6722c4056f59f7baaabc082fd3ecabd1dd27.zip
cpython-027f6722c4056f59f7baaabc082fd3ecabd1dd27.tar.gz
cpython-027f6722c4056f59f7baaabc082fd3ecabd1dd27.tar.bz2
Changed some prototypes to match the exact definition in some faraway Apple
header files. If we're building with precompiled headers these are in scope.
-rw-r--r--Mac/Python/macglue.c6
-rw-r--r--Mac/Python/macshlglue.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index feb148f..25bc3f7 100644
--- a/Mac/Python/macglue.c
+++ b/Mac/Python/macglue.c
@@ -65,9 +65,9 @@ extern void SIOUXDoAboutBox(void);
/* Functions we redefine because they're in obscure libraries */
extern void SpinCursor(short x);
extern void RotateCursor(short x);
-extern pascal void PLstrcpy(unsigned char *, unsigned char *);
-extern pascal int PLstrcmp(unsigned char *, unsigned char *);
-extern pascal unsigned char *PLstrrchr(unsigned char *, unsigned char);
+extern pascal unsigned char * PLstrcpy(unsigned char *, const unsigned char *);
+extern pascal short PLstrcmp(const unsigned char *, const unsigned char *);
+extern pascal char *PLstrrchr(const unsigned char *, short);
#endif
diff --git a/Mac/Python/macshlglue.c b/Mac/Python/macshlglue.c
index 523efc9..d88d443 100644
--- a/Mac/Python/macshlglue.c
+++ b/Mac/Python/macshlglue.c
@@ -54,7 +54,7 @@ PERFORMANCE OF THIS SOFTWARE.
extern void __initialize(void);
/* Defined either in macglue.c or in a MPW library: */
-extern pascal int PLstrcmp(unsigned char *, unsigned char *);
+extern pascal short PLstrcmp(const unsigned char *, const unsigned char *);
/*
** Variables passed from shared lib initialization to PyMac_AddLibResources.