From 05639983954d4263ecea516877b42e8735f54be0 Mon Sep 17 00:00:00 2001 From: Yang Chi Date: Thu, 13 Aug 2015 07:58:03 -0700 Subject: [PATCH] Detect clang in folly/Portability.h Summary: The fix in D2283221 was specific to a bug in gcc 4.8 but the macro was failing to filter out clang compilers. Reviewed By: @yfeldblum Differential Revision: D2340160 --- folly/Portability.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Portability.h b/folly/Portability.h index 5e2eff3d..77baf95a 100644 --- a/folly/Portability.h +++ b/folly/Portability.h @@ -159,7 +159,7 @@ # endif #endif -#if defined(__GNUC__) && !__GNUC_PREREQ(4,9) +#if defined(__GNUC__) && !defined(__APPLE__) && !__GNUC_PREREQ(4,9) // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56019 // gcc 4.8.x incorrectly placed max_align_t in the root namespace // Alias it into std (where it's found in 4.9 and later) -- 2.34.1