summaryrefslogtreecommitdiff
path: root/libc/include
diff options
context:
space:
mode:
authorAlex Brachet <abrachet@google.com>2023-01-09 20:16:20 +0000
committerAlex Brachet <abrachet@google.com>2023-01-09 20:16:20 +0000
commitdc1b614bb8b0181f7443848633807f5fb934c6b2 (patch)
treeb0441302864aef2e75b4306e24ef179ecaea5350 /libc/include
parentc6dcbed2e5327f0c11962bdbbcd02f1b5c570fea (diff)
downloadllvm-dc1b614bb8b0181f7443848633807f5fb934c6b2.tar.gz
[libc] Move b* string functions to strings.h
Traditionally these functions are exposed in string*s*.h not string.h Differential Revision: https://reviews.llvm.org/D141237
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/CMakeLists.txt9
-rw-r--r--libc/include/strings.h.def16
2 files changed, 25 insertions, 0 deletions
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 6fa2593f6976..df61a5599567 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -96,6 +96,15 @@ add_gen_header(
)
add_gen_header(
+ strings
+ DEF_FILE strings.h.def
+ GEN_HDR strings.h
+ DEPENDS
+ .llvm_libc_common_h
+ .llvm-libc-types.size_t
+)
+
+add_gen_header(
time
DEF_FILE time.h.def
GEN_HDR time.h
diff --git a/libc/include/strings.h.def b/libc/include/strings.h.def
new file mode 100644
index 000000000000..f07ca30d5dbd
--- /dev/null
+++ b/libc/include/strings.h.def
@@ -0,0 +1,16 @@
+//===-- C standard library header strings.h -------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_STRINGS_H
+#define LLVM_LIBC_STRINGS_H
+
+#include <__llvm-libc-common.h>
+
+%%public_api()
+
+#endif // LLVM_LIBC_STRINGS_H