Skip to content

Commit 1677701

Browse files
authored
Merge pull request #7407 from hughbe/cygwin-port-conditional-compilation
Simplify CygwinPort.cpp conditional compilation
2 parents 813b8e0 + e9a0679 commit 1677701

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stdlib/public/runtime/CygwinPort.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17-
#if defined(_WIN32) || defined(__CYGWIN__)
17+
#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(_MSC_VER)
1818
#include "Private.h"
1919
#include "swift/Runtime/Debug.h"
2020
#include <stdint.h>
@@ -30,7 +30,6 @@
3030

3131
using namespace swift;
3232

33-
#if !defined(_MSC_VER)
3433
static std::mutex swiftOnceMutex;
3534

3635
void swift::_swift_once_f(uintptr_t *predicate, void *context,
@@ -47,5 +46,4 @@ void swift::_swift_once_f(uintptr_t *predicate, void *context,
4746
} else
4847
swiftOnceMutex.unlock();
4948
}
50-
#endif
51-
#endif
49+
#endif // (defined(_WIN32) || defined(__CYGWIN__)) && !defined(_MSC_VER)

0 commit comments

Comments
 (0)