From: Orvid King Date: Tue, 28 Jul 2015 21:15:02 +0000 (-0700) Subject: Add MSVC support for FOLLY_DEPRECATED X-Git-Tag: v0.53.0~47 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7ea0415cbb1d0d17e811e64e425f542e3ffcf410;p=folly.git 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 --- 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