Skip to content

Commit de4bb96

Browse files
committed
review fixes
1 parent 70ce513 commit de4bb96

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
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

Sources/Foundation/Process.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ open class Process: NSObject, @unchecked Sendable {
938938
useFallbackChdir = false
939939
}
940940

941-
#if canImport(Darwin) || os(Android) || os(OpenBSD)
941+
#if canImport(Darwin) || os(OpenBSD)
942942
var spawnAttrs: posix_spawnattr_t? = nil
943943
#else
944944
var spawnAttrs: posix_spawnattr_t = posix_spawnattr_t()

0 commit comments

Comments
 (0)