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

Skip to content

Commit 6ba34aa

Browse files
committed
Disabled a few other routines that are available in CarbonLib.
1 parent 6993f27 commit 6ba34aa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Mac/Python/macglue.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,10 @@ PyMac_StopGUSISpin() {
287287
PyMac_ConsoleIsDead = 1;
288288
}
289289

290+
#if !TARGET_API_MAC_CARBON
290291
/*
291292
** Replacement routines for the PLstr... functions so we don't need
292-
** StdCLib. Moreover, that implementation is broken under cfm68k...
293+
** StdCLib.
293294
*/
294295
pascal void
295296
PLstrcpy(unsigned char *to, unsigned char *fr)
@@ -327,6 +328,7 @@ PLstrrchr(unsigned char *str, unsigned char chr)
327328
return ptr;
328329
}
329330

331+
#endif /* !TARGET_API_MAC_CARBON */
330332
#endif /* USE_GUSI */
331333

332334

@@ -356,7 +358,7 @@ c2pstrcpy(unsigned char *dst, const char *src)
356358
strncpy((char *)dst+1, src, len);
357359
dst[0] = len;
358360
}
359-
#endif
361+
#endif /* !TARGET_API_MAC_CARBON */
360362

361363
/* Like strerror() but for Mac OS error numbers */
362364
char *PyMac_StrError(int err)

0 commit comments

Comments
 (0)