Skip to content

Commit

Permalink
Fix YG_DEPRECATED in MSVC C Build (#37178)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #37178

X-link: facebook/yoga#1272

Forgot to export this one to the Yoga repo to test the MSVC bits...

Reviewed By: yungsters

Differential Revision: D45432859

fbshipit-source-id: e505e73e135570bdf4587cefdf565a91032e1420
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Apr 30, 2023
1 parent 7f300cd commit 4931333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/ReactCommon/yoga/yoga/YGMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#if defined(__cplusplus)
#define YG_DEPRECATED(message) [[deprecated(message)]]
#elif defined(_MSC_VER)
#define YG_DEPRECATED(message) __declspec(depreacted(message))
#define YG_DEPRECATED(message) __declspec(deprecated(message))
#else
#define YG_DEPRECATED(message) __attribute__((deprecated(message)))
#endif
Expand Down

0 comments on commit 4931333

Please sign in to comment.