Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 027f672

Browse files
committed
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.
1 parent 440a36f commit 027f672

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Mac/Python/macglue.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ extern void SIOUXDoAboutBox(void);
6565
/* Functions we redefine because they're in obscure libraries */
6666
extern void SpinCursor(short x);
6767
extern void RotateCursor(short x);
68-
extern pascal void PLstrcpy(unsigned char *, unsigned char *);
69-
extern pascal int PLstrcmp(unsigned char *, unsigned char *);
70-
extern pascal unsigned char *PLstrrchr(unsigned char *, unsigned char);
68+
extern pascal unsigned char * PLstrcpy(unsigned char *, const unsigned char *);
69+
extern pascal short PLstrcmp(const unsigned char *, const unsigned char *);
70+
extern pascal char *PLstrrchr(const unsigned char *, short);
7171

7272
#endif
7373

Mac/Python/macshlglue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ PERFORMANCE OF THIS SOFTWARE.
5454
extern void __initialize(void);
5555

5656
/* Defined either in macglue.c or in a MPW library: */
57-
extern pascal int PLstrcmp(unsigned char *, unsigned char *);
57+
extern pascal short PLstrcmp(const unsigned char *, const unsigned char *);
5858

5959
/*
6060
** Variables passed from shared lib initialization to PyMac_AddLibResources.

0 commit comments

Comments
 (0)