From 7ea0415cbb1d0d17e811e64e425f542e3ffcf410 Mon Sep 17 00:00:00 2001 From: Orvid King <blah38621@gmail.com> Date: Tue, 28 Jul 2015 14:15:02 -0700 Subject: [PATCH] Add MSVC support for FOLLY_DEPRECATED Summary: This adds MSVC support for `FOLLY_DEPRECATED`. Closes #257 Reviewed By: @yfeldblum Differential Revision: D2283484 Pulled By: @sgolemon --- folly/Portability.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/folly/Portability.h b/folly/Portability.h index 7f7a8a1f..23568db0 100644 --- a/folly/Portability.h +++ b/folly/Portability.h @@ -82,6 +82,8 @@ struct MaxAlign { char c; } __attribute__((__aligned__)); // deprecated #if defined(__clang__) || defined(__GNUC__) # define FOLLY_DEPRECATED(msg) __attribute__((__deprecated__(msg))) +#elif defined(_MSC_VER) +# define FOLLY_DEPRECATED(msg) __declspec(deprecated(msg)) #else # define FOLLY_DEPRECATED #endif -- 2.34.1