Skip to content

Simplify CygwinPort.cpp conditional compilation #7407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions stdlib/public/runtime/CygwinPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//
//===----------------------------------------------------------------------===//

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

using namespace swift;

#if !defined(_MSC_VER)
static std::mutex swiftOnceMutex;

void swift::_swift_once_f(uintptr_t *predicate, void *context,
Expand All @@ -47,5 +46,4 @@ void swift::_swift_once_f(uintptr_t *predicate, void *context,
} else
swiftOnceMutex.unlock();
}
#endif
#endif
#endif // (defined(_WIN32) || defined(__CYGWIN__)) && !defined(_MSC_VER)