From 97b270253a80dca0a8fa7cd43e6a43fc13141d57 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Sun, 30 Apr 2023 11:06:02 -0700 Subject: [PATCH] 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 --- packages/react-native/ReactCommon/yoga/yoga/YGMacros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/yoga/yoga/YGMacros.h b/packages/react-native/ReactCommon/yoga/yoga/YGMacros.h index b4e4e95fae26e8..cd137117d27d52 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/YGMacros.h +++ b/packages/react-native/ReactCommon/yoga/yoga/YGMacros.h @@ -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