Don't need to define c2pstrcpy() on Carbon: it's in CarbonLib.
This commit is contained in:
parent
6ff228c6d2
commit
91faef83ca
|
@ -345,6 +345,7 @@ Pstring(char *str)
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !TARGET_API_MAC_CARBON
|
||||||
void
|
void
|
||||||
c2pstrcpy(unsigned char *dst, const char *src)
|
c2pstrcpy(unsigned char *dst, const char *src)
|
||||||
{
|
{
|
||||||
|
@ -355,6 +356,7 @@ c2pstrcpy(unsigned char *dst, const char *src)
|
||||||
strncpy((char *)dst+1, src, len);
|
strncpy((char *)dst+1, src, len);
|
||||||
dst[0] = len;
|
dst[0] = len;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Like strerror() but for Mac OS error numbers */
|
/* Like strerror() but for Mac OS error numbers */
|
||||||
char *PyMac_StrError(int err)
|
char *PyMac_StrError(int err)
|
||||||
|
|
Loading…
Reference in New Issue