File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ add_header_library(
2020 .memory_utils.memcpy_implementation
2121 libc.include .stdlib
2222 libc.src.__support.CPP.optional
23+ libc.src.__support.macros .config
2324)
2425
2526add_entrypoint_object(
Original file line number Diff line number Diff line change 1111
1212#include " src/__support/CPP/new.h"
1313#include " src/__support/CPP/optional.h"
14+ #include " src/__support/macros/config.h"
1415#include " src/string/memory_utils/memcpy_implementations.h" // For string_length
1516#include " src/string/string_utils.h"
1617
1920namespace __llvm_libc {
2021namespace internal {
2122
22- cpp::optional<char *> strdup (const char *src) {
23+ LIBC_INLINE cpp::optional<char *> strdup (const char *src) {
2324 if (src == nullptr )
2425 return cpp::nullopt ;
2526 size_t len = string_length (src) + 1 ;
You can’t perform that action at this time.
0 commit comments