From: Jack Jansen Date: Wed, 26 Jun 2002 20:37:40 +0000 (+0000) Subject: Changed some prototypes to match the exact definition in some faraway Apple X-Git-Tag: v2.3c1~5200 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=027f6722c4056f59f7baaabc082fd3ecabd1dd27;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c index feb148feecb7..25bc3f76f9ff 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 523efc99a1a3..d88d4434e0c8 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.