projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90db5bb
)
Add MSVC support for FOLLY_FINAL and FOLLY_OVERRIDE
author
Orvid King
<blah38621@gmail.com>
Tue, 28 Jul 2015 21:18:10 +0000
(14:18 -0700)
committer
facebook-github-bot-1
<folly-bot@fb.com>
Tue, 28 Jul 2015 22:22:16 +0000
(15:22 -0700)
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
patch
|
blob
|
history
diff --git
a/folly/Portability.h
b/folly/Portability.h
index 0e8e11082c86daa80291a8f7d10aacbdcde60f66..a9c3679313f38c892380ac1a923a18776d1672e5 100644
(file)
--- 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 /**/