[libc-commits] [libc] 8e4bda1 - [libc] Fix missing has feature for older GCC
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Tue Sep 2 04:35:38 PDT 2025
Author: Joseph Huber
Date: 2025-09-02T06:35:27-05:00
New Revision: 8e4bda15b5779a6124f97f77481af4249270a961
URL: https://github.com/llvm/llvm-project/commit/8e4bda15b5779a6124f97f77481af4249270a961
DIFF: https://github.com/llvm/llvm-project/commit/8e4bda15b5779a6124f97f77481af4249270a961.diff
LOG: [libc] Fix missing has feature for older GCC
Added:
Modified:
libc/src/__support/macros/attributes.h
Removed:
################################################################################
diff --git a/libc/src/__support/macros/attributes.h b/libc/src/__support/macros/attributes.h
index d350a06125f00..145aa3b65057c 100644
--- a/libc/src/__support/macros/attributes.h
+++ b/libc/src/__support/macros/attributes.h
@@ -17,6 +17,7 @@
#ifndef LLVM_LIBC_SRC___SUPPORT_MACROS_ATTRIBUTES_H
#define LLVM_LIBC_SRC___SUPPORT_MACROS_ATTRIBUTES_H
+#include "config.h"
#include "properties/architectures.h"
#ifndef __has_attribute
@@ -73,7 +74,8 @@ LIBC_THREAD_MODE_EXTERNAL.
#define LIBC_PREFERED_TYPE(TYPE)
#endif
-#if __has_attribute(ext_vector_type) && __has_feature(ext_vector_type_boolean)
+#if __has_attribute(ext_vector_type) && \
+ LIBC_HAS_FEATURE(ext_vector_type_boolean)
#define LIBC_HAS_VECTOR_TYPE 1
#else
#define LIBC_HAS_VECTOR_TYPE 0
More information about the libc-commits
mailing list