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

Skip to content

Commit 91faef8

Browse files
committed
Don't need to define c2pstrcpy() on Carbon: it's in CarbonLib.
1 parent 6ff228c commit 91faef8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Mac/Python/macglue.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ Pstring(char *str)
345345
return buf;
346346
}
347347

348+
#if !TARGET_API_MAC_CARBON
348349
void
349350
c2pstrcpy(unsigned char *dst, const char *src)
350351
{
@@ -355,6 +356,7 @@ c2pstrcpy(unsigned char *dst, const char *src)
355356
strncpy((char *)dst+1, src, len);
356357
dst[0] = len;
357358
}
359+
#endif
358360

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

0 commit comments

Comments
 (0)