Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macglue.c @ 15786:83e146974b72 legacy-trunk
Don't need to define c2pstrcpy() on Carbon: it's in CarbonLib.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Tue, 09 Jan 2001 22:24:56 +0000 |
| parents | a93d79da4f8c |
| children | 4328ffe647bf |
line wrap: on
line diff
--- a/Mac/Python/macglue.c Tue Jan 09 22:24:06 2001 +0000 +++ b/Mac/Python/macglue.c Tue Jan 09 22:24:56 2001 +0000 @@ -345,6 +345,7 @@ return buf; } +#if !TARGET_API_MAC_CARBON void c2pstrcpy(unsigned char *dst, const char *src) { @@ -355,6 +356,7 @@ strncpy((char *)dst+1, src, len); dst[0] = len; } +#endif /* Like strerror() but for Mac OS error numbers */ char *PyMac_StrError(int err)
