From 0c1113b9d64f7c805f1030f28329198fa2dd926d Mon Sep 17 00:00:00 2001 From: Orvid King Date: Tue, 28 Jul 2015 14:18:10 -0700 Subject: [PATCH] Add MSVC support for FOLLY_FINAL and FOLLY_OVERRIDE Summary: This adds MSVC support for `FOLLY_FINAL` and `FOLLY_OVERRIDE`. Closes #258 Reviewed By: @yfeldblum Differential Revision: D2283502 Pulled By: @sgolemon --- folly/Portability.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/folly/Portability.h b/folly/Portability.h index 0e8e1108..a9c36793 100644 --- a/folly/Portability.h +++ b/folly/Portability.h @@ -160,6 +160,9 @@ struct MaxAlign { char c; } __attribute__((__aligned__)); # if defined(__clang__) || __GNUC_PREREQ(4, 7) # define FOLLY_FINAL final # define FOLLY_OVERRIDE override +# elif defined(_MSC_VER) && _MSC_VER >= 1600 +# define FOLLY_FINAL final +# define FOLLY_OVERRIDE override # else # define FOLLY_FINAL /**/ # define FOLLY_OVERRIDE /**/ -- 2.34.1