[libc-commits] [libc] [llvm] [libc] Remove obsolete LIBC_HAS_BUILTIN macro (PR #86554)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Mon Mar 25 14:13:51 PDT 2024
================
@@ -21,6 +21,11 @@
using namespace LIBC_NAMESPACE;
+// Workaround for missing __has_builtin in < GCC 10.
+#ifndef __has_builtin
+#define __has_builtin 0
+#endif
+
----------------
nickdesaulniers wrote:
I think it also need to be `#define __has_builtin(x) 0` otherwise we'll get a failure during preprocessing. The macro expansion sites expect a function like macro.
https://github.com/llvm/llvm-project/pull/86554
More information about the libc-commits
mailing list