mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix YG_DEPRECATED in MSVC C Build (#37178)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37178 X-link: https://github.com/facebook/yoga/pull/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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7f300cd755
commit
97b270253a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user