diff options
Diffstat (limited to 'support/cdefs.h')
-rw-r--r-- | support/cdefs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/support/cdefs.h b/support/cdefs.h index 44d3826b..cb251450 100644 --- a/support/cdefs.h +++ b/support/cdefs.h @@ -41,7 +41,9 @@ Similarly for __has_builtin, etc. */ #if (defined __has_attribute \ && (!defined __clang_minor__ \ - || 3 < __clang_major__ + (5 <= __clang_minor__))) + || (defined __apple_build_version__ \ + ? 6000000 <= __apple_build_version__ \ + : 3 < __clang_major__ + (5 <= __clang_minor__)))) # define __glibc_has_attribute(attr) __has_attribute (attr) #else # define __glibc_has_attribute(attr) 0 |