From db28dd1a24e1cf93dca9a3fff5010de70abb7fd8 Mon Sep 17 00:00:00 2001 From: Michael Ranieri Date: Fri, 13 Dec 2024 14:05:10 -0800 Subject: [PATCH] support msvc::no_unique_address Summary: https://en.cppreference.com/w/cpp/language/attributes/no_unique_address Reviewed By: Gownta Differential Revision: D67054400 fbshipit-source-id: 07609ac5227baa20bae4f3100d13bd1039358d76 --- third-party/folly/src/folly/CppAttributes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third-party/folly/src/folly/CppAttributes.h b/third-party/folly/src/folly/CppAttributes.h index 6199b8a5400db..a701f4917abf2 100644 --- a/third-party/folly/src/folly/CppAttributes.h +++ b/third-party/folly/src/folly/CppAttributes.h @@ -118,6 +118,8 @@ */ #if FOLLY_HAS_CPP_ATTRIBUTE(no_unique_address) #define FOLLY_ATTR_NO_UNIQUE_ADDRESS no_unique_address +#elif FOLLY_HAS_CPP_ATTRIBUTE(msvc::no_unique_address) +#define FOLLY_ATTR_NO_UNIQUE_ADDRESS msvc::no_unique_address #else #define FOLLY_ATTR_NO_UNIQUE_ADDRESS #endif