Wrap attribute in clang check
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user