[libcxx-commits] [libcxx] [libcxx]support freestanding libc++ (PR #208900)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 12 08:27:55 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
----------------
arhwx wrote:
This guard is inverted; it wraps the declarations in `extern "C"` for C instead of C++.
https://github.com/llvm/llvm-project/pull/208900
More information about the libcxx-commits
mailing list