Skip to content

Commit 8e4bda1

Browse files
committed
[libc] Fix missing has feature for older GCC
1 parent 1af1977 commit 8e4bda1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libc/src/__support/macros/attributes.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#ifndef LLVM_LIBC_SRC___SUPPORT_MACROS_ATTRIBUTES_H
1818
#define LLVM_LIBC_SRC___SUPPORT_MACROS_ATTRIBUTES_H
1919

20+
#include "config.h"
2021
#include "properties/architectures.h"
2122

2223
#ifndef __has_attribute
@@ -73,7 +74,8 @@ LIBC_THREAD_MODE_EXTERNAL.
7374
#define LIBC_PREFERED_TYPE(TYPE)
7475
#endif
7576

76-
#if __has_attribute(ext_vector_type) && __has_feature(ext_vector_type_boolean)
77+
#if __has_attribute(ext_vector_type) && \
78+
LIBC_HAS_FEATURE(ext_vector_type_boolean)
7779
#define LIBC_HAS_VECTOR_TYPE 1
7880
#else
7981
#define LIBC_HAS_VECTOR_TYPE 0

0 commit comments

Comments
 (0)