Skip to content

Commit

Permalink
Wrap attribute in clang check
Browse files Browse the repository at this point in the history
  • Loading branch information
iainsmith committed Aug 26, 2024
1 parent d05d24d commit 8e8cfa2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yoga/YGMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@
// the header is a mismatch for the Yoga ABI.
#define YG_ENUM_BEGIN(name) NS_ENUM(int, name)
#define YG_ENUM_END(name)
#else
#elif defined(__clang__)
#define YG_ENUM_BEGIN(name) enum name
#define YG_ENUM_END(name) __attribute__((enum_extensibility(closed))) name
#else
#define YG_ENUM_BEGIN(name) enum name
#define YG_ENUM_END(name) name
#endif

#ifdef __cplusplus
Expand Down

0 comments on commit 8e8cfa2

Please sign in to comment.