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:
X-link: facebook/react-native#37178

Pull Request resolved: facebook#1272

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

Reviewed By: yungsters

Differential Revision: D45432859

fbshipit-source-id: e7c939352e36ae1580e9942781e0dfe73935de07
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Apr 30, 2023
1 parent f32d37a commit 15c8ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 15c8ac5

Please sign in to comment.