Skip to content

Commit 229e2c3

Browse files
authored
Merge pull request #6937 from hughbe/cygwin-warnings
Fix warnings on all platforms for cygwin specific code.
2 parents 765140c + 0b9685c commit 229e2c3

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)