Skip to content

Commit baf670e

Browse files
rmazfacebook-github-bot
authored andcommitted
make yogaApple modular
Summary: X-link: facebook/react-native#44938 Yoga is transitively included in Swift targets and needs to be modular. Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D58469454 fbshipit-source-id: 72bc6b5d3e5ee0710d9334a626e4e7297ce26b09
1 parent 289b627 commit baf670e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

yoga/YGMacros.h

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
#define YG_EXPORT
3636
#endif
3737

38+
#ifdef __OBJC__
39+
#if __has_include(<Foundation/Foundation.h>)
40+
#import <Foundation/Foundation.h>
41+
#endif
42+
#endif
43+
3844
#ifdef NS_ENUM
3945
// Cannot use NSInteger as NSInteger has a different size than int (which is the
4046
// default type of a enum). Therefor when linking the Yoga C library into obj-c

0 commit comments

Comments
 (0)