We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d7e694 + 5e24abc commit 72d801cCopy full SHA for 72d801c
stdlib/public/SwiftShims/swift/shims/LibcShims.h
@@ -61,7 +61,7 @@ SWIFT_READONLY
61
static inline int _swift_stdlib_memcmp(const void *s1, const void *s2,
62
__swift_size_t n) {
63
// FIXME: Is there a way to identify Glibc specifically?
64
-#if defined(__gnu_linux__) || defined(__ANDROID__) || defined(__musl__)
+#if (defined(__gnu_linux__) || defined(__ANDROID__)) && !defined(__musl__)
65
extern int memcmp(const void * _Nonnull, const void * _Nonnull, __swift_size_t);
66
#else
67
extern int memcmp(const void * _Null_unspecified, const void * _Null_unspecified, __swift_size_t);
0 commit comments