Skip to content

Commit d5246a5

Browse files
committed
[windows][vs2017] Add missing <atomic> include.
Seems that VS2019 and other C++ standard libraries include <atomic> as part of either <string> or <vector>, but not VS2017. When #38782 landed a new usage of std::atomic started creating compilation problems in the VS2017 builders (eg. https://ci-external.swift.org/job/oss-swift-windows-x86_64/8736/). Including the <atomic> header solves the problem.
1 parent b341624 commit d5246a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "llvm/Support/Regex.h"
3232
#include "llvm/Support/VersionTuple.h"
3333
#include "llvm/Support/raw_ostream.h"
34+
#include <atomic>
3435
#include <string>
3536
#include <vector>
3637

0 commit comments

Comments
 (0)