From 2cc058aa309587240fb4c16e9fe30b9ec9085cc9 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sun, 14 Oct 2012 01:27:31 +0400 Subject: [PATCH] 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 --- folly/Portability.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/folly/Portability.h b/folly/Portability.h index 06241044..f16c69a0 100644 --- 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 # if __GNUC_PREREQ(4,7) # define FOLLY_FINAL final # define FOLLY_OVERRIDE override -- 2.34.1