From: Orvid King Date: Tue, 28 Jul 2015 21:18:10 +0000 (-0700) Subject: Add MSVC support for FOLLY_FINAL and FOLLY_OVERRIDE X-Git-Tag: v0.53.0~49 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0c1113b9d64f7c805f1030f28329198fa2dd926d;p=folly.git 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 --- 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 /**/