Skip to content

Commit 2829eef

Browse files
mark CAtomic import as internal or implementation-only (#200)
fixes rdar://134894555, fixes #195
1 parent 8986fc2 commit 2829eef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/Markdown/Utility/AtomicCounter.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import CAtomic
11+
#if compiler(>=6.0)
12+
internal import CAtomic
13+
#else
14+
@_implementationOnly import CAtomic
15+
#endif
1216

1317
/// A wrapper for a 64-bit unsigned atomic singleton counter.
1418
struct AtomicCounter {

0 commit comments

Comments
 (0)