Skip to content

Commit b29d467

Browse files
CodaFiDougGregor
authored andcommitted
Conditionalize Enum Extensibility
1 parent 0fc80dc commit b29d467

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/AST/CASTBridging.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define SWIFT_C_AST_ASTBRIDGING_H
1515

1616
#include <inttypes.h>
17+
#include "swift/Basic/Compiler.h"
1718

1819
#if __clang__
1920
// Provide macros to temporarily suppress warning about the use of
@@ -59,7 +60,7 @@ typedef struct {
5960
void *_Nullable TrailingCommaLoc;
6061
} BridgedTupleTypeElement;
6162

62-
typedef enum __attribute__((enum_extensibility(open))) BridgedRequirementReprKind : long {
63+
typedef enum ENUM_EXTENSIBILITY_ATTR(open) BridgedRequirementReprKind : long {
6364
/// A type bound T : P, where T is a type that depends on a generic
6465
/// parameter and P is some type that should bound T, either as a concrete
6566
/// supertype or a protocol to which T must conform.

0 commit comments

Comments
 (0)