From: Yang Chi Date: Thu, 13 Aug 2015 14:58:03 +0000 (-0700) Subject: Detect clang in folly/Portability.h X-Git-Tag: v0.54.0~10 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=05639983954d4263ecea516877b42e8735f54be0;hp=919d8e39757df6413a1d558f67774d1344f5dfd8 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 --- 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)