build: Conditionalize wcslcpy() and wcslcat() functions on macOS

These functions are provided by the system libc.
This commit is contained in:
Guillem Jover
2023-04-23 02:05:04 +02:00
parent dc1bd1a2cb
commit 5434ba169b
4 changed files with 19 additions and 4 deletions

View File

@@ -50,8 +50,10 @@
__BEGIN_DECLS
wchar_t *fgetwln(FILE *stream, size_t *len);
#if !defined(__APPLE__)
size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t size);
size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t size);
#endif
__END_DECLS
#endif