Skip to content

Commit 1da58eb

Browse files
committed
review fixes
1 parent 70ce513 commit 1da58eb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Sources/CoreFoundation/internalInclude/CoreFoundation_Prefix.h

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

112-
#if TARGET_OS_ANDROID
113-
#define HAVE_STRLCPY 1
114-
#define HAVE_STRLCAT 1
115-
#endif
116-
117112
#if TARGET_OS_WIN32
118113
#define BOOL WINDOWS_BOOL
119114

@@ -205,9 +200,9 @@ static dispatch_queue_t __ ## PREFIX ## Queue(void) { \
205200
#endif
206201

207202
// We know some things (Darwin, WASI, Glibc >= 2.38) have strlcpy/strlcat
208-
#if TARGET_OS_MAC || TARGET_OS_WASI \
209-
|| (defined(__GLIBC__) && \
210-
((__GLIBC_MAJOR__ == 2 && __GLIBC_MINOR__ >= 38) \
203+
#if TARGET_OS_MAC || TARGET_OS_WASI || TARGET_OS_ANDROID \
204+
|| (defined(__GLIBC__) && \
205+
((__GLIBC_MAJOR__ == 2 && __GLIBC_MINOR__ >= 38) \
211206
|| __GLIBC_MAJOR__ > 2))
212207
#define HAVE_STRLCPY 1
213208
#define HAVE_STRLCAT 1

0 commit comments

Comments
 (0)