[libcxx-commits] [libcxx] [libcxx]support freestanding libc++ (PR #208900)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 12 19:24:11 PDT 2026
================
@@ -60,11 +60,49 @@ size_t strlen(const char* s);
# pragma GCC system_header
# endif
+# include <stddef.h>
# if __has_include_next(<string.h>)
# include_next <string.h>
-# endif
+# else
+# ifndef __cplusplus
+extern "C" {
+# endif
-# include <stddef.h>
+/*
+We offer declarations for these C functions,
+leaving the implementations to be handled by users.
+*/
+
----------------
trcrsired wrote:
i think this has to be done at gcc side. Just too many for x86_64-elf freestanding gcc
https://github.com/llvm/llvm-project/pull/208900
More information about the libcxx-commits
mailing list