From 2176af7a269201064136da00b6428c44efac1bbd Mon Sep 17 00:00:00 2001 From: Igor Popov Date: Wed, 20 Dec 2023 11:36:01 +0300 Subject: [PATCH] Fix `__float128` only available on Linux for x86_64 (#75909) --- libc/src/__support/macros/properties/float.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/src/__support/macros/properties/float.h b/libc/src/__support/macros/properties/float.h index 756579024cad..98ca2a5d4bc4 100644 --- a/libc/src/__support/macros/properties/float.h +++ b/libc/src/__support/macros/properties/float.h @@ -59,9 +59,9 @@ using float16 = _Float16; defined(LIBC_TARGET_ARCH_IS_X86_64)) #define LIBC_COMPILER_HAS_C23_FLOAT128 #endif -#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 500)) && \ +#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 600)) && \ (defined(LIBC_TARGET_ARCH_IS_X86_64) && \ - !defined(LIBC_TARGET_OS_IS_FUCHSIA)) + defined(LIBC_TARGET_OS_IS_LINUX) && !defined(LIBC_TARGET_OS_IS_FUCHSIA)) #define LIBC_COMPILER_HAS_FLOAT128_EXTENSION #endif