Skip to content

Commit 0b9685c

Browse files
committed
Fix warnings on all platforms for cygwin specific code.
1 parent 765140c commit 0b9685c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/CygwinPort.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030

3131
using namespace swift;
3232

33+
#if !defined(_MSC_VER)
3334
static std::mutex swiftOnceMutex;
3435

35-
#if !defined(_MSC_VER)
3636
void swift::_swift_once_f(uintptr_t *predicate, void *context,
3737
void (*function)(void *)) {
3838
// FIXME: This implementation does a global lock, which is much worse than

0 commit comments

Comments
 (0)