Skip to content

Commit f0a3631

Browse files
[wasm] strlcpy and strlcat are available in wasi-libc
Mark them available on WASI. Otherwise, the `static inline` implementations are activated and the build fails with multiple definitions.
1 parent 27efb0c commit f0a3631

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/CoreFoundation/internalInclude/CoreFoundation_Prefix.h

+5
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ typedef char * Class;
109109
#include <pthread.h>
110110
#endif
111111

112+
#if TARGET_OS_WASI
113+
#define HAVE_STRLCPY 1
114+
#define HAVE_STRLCAT 1
115+
#endif
116+
112117
#if TARGET_OS_WIN32
113118
#define BOOL WINDOWS_BOOL
114119

0 commit comments

Comments
 (0)