From 3156cb207fa0e2e909c8fdb8446fdcc0160df3f3 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: X-link: https://github.com/facebook/react-native/pull/37178 Pull Request resolved: 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 --- yoga/YGMacros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/YGMacros.h b/yoga/YGMacros.h index b4e4e95f..cd137117 100644 --- a/yoga/YGMacros.h +++ b/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