Commit 2cc058aa authored by Anton Korobeynikov's avatar Anton Korobeynikov Committed by Jordan DeLong

Get rid of some gcc-ism's in Portability.h

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
parent b2b94be3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment