projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b94be
)
Get rid of some gcc-ism's in Portability.h
author
Anton Korobeynikov
<anton@korobeynikov.info>
Sat, 13 Oct 2012 21:27:31 +0000
(
01:27
+0400)
committer
Jordan DeLong
<jdelong@fb.com>
Sat, 19 Jan 2013 00:37:21 +0000
(16:37 -0800)
Summary:
handle at least clang. It will be better to turn this into
configure check, though.
Test Plan: .
Reviewed By: tudorb@fb.com
FB internal diff:
D660139
folly/Portability.h
patch
|
blob
|
history
diff --git
a/folly/Portability.h
b/folly/Portability.h
index 06241044f40c9648616161d9a8accf6afecdfa95..f16c69a0adcd7a29fb4e0911591d6fec9d541831 100644
(file)
--- a/
folly/Portability.h
+++ b/
folly/Portability.h
@@
-33,7
+33,11
@@
#undef FOLLY_FINAL
#undef FOLLY_OVERRIDE
-#ifdef __GNUC__
+#if defined(__clang__)
+# define FOLLY_FINAL final
+# define FOLLY_OVERRIDE override
+#elif defined(__GNUC__)
+# #include <features.h>
# if __GNUC_PREREQ(4,7)
# define FOLLY_FINAL final
# define FOLLY_OVERRIDE override