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

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: 8d5f2daacb00daab67de111410329f8db80475e0
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Apr 30, 2023
1 parent d936522 commit 232907d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yoga/src/main/cpp/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 232907d

Please sign in to comment.