Skip to content

Commit 2ac6aba

Browse files
committed
Use proper feature check style for this
1 parent 56249cc commit 2ac6aba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/Observation/Sources/Observation/Macros.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
#if hasFeature(Macros) && hasAttribute(attached)
12+
#if $Macros && hasAttribute(attached)
1313

1414
@available(SwiftStdlib 5.9, *)
1515
@attached(member, names: named(_registrar), named(transactions), named(changes), named(_Storage), named(_storage))

stdlib/public/core/Macros.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#if hasFeature(Macros) && hasAttribute(attached)
13+
#if $Macros && hasAttribute(attached)
1414

1515
/// Specifies the module and type name for an externally-defined macro, which
1616
/// must conform to the appropriate set of `Macro` protocols.

0 commit comments

Comments
 (0)