Skip to content

Commit b359d4a

Browse files
committed
Fix type of memcmp on Windows
1 parent 965f32d commit b359d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SwiftShims/LibcShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static inline __swift_size_t _swift_stdlib_strlen_unsigned(const unsigned char *
6060
SWIFT_READONLY
6161
static inline int _swift_stdlib_memcmp(const void *s1, const void *s2,
6262
__swift_size_t n) {
63-
#if defined(__APPLE__) || defined(__ANDROID__) || defined(__OpenBSD__)
63+
#if defined(__APPLE__) || defined(__ANDROID__) || defined(__OpenBSD__) || defined(_WIN32)
6464
extern int memcmp(const void * _Nullable, const void * _Nullable, __swift_size_t);
6565
#else
6666
extern int memcmp(const void *, const void *, __swift_size_t);

0 commit comments

Comments
 (0)