Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Get rid of some gcc-ism's in Portability.h - handle at least clang.

It will be better to turn this into configure check, though
  • Loading branch information...
commit 5e942ac95f7c760dc228d84db96978c656f63f2b 1 parent 148cba1
@asl authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 folly/Portability.h
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.