[libc-commits] [libc] [libc] Include size_t type header in strings.h (PR #124352)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Fri Jan 24 13:30:21 PST 2025


https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/124352

A number of functions in strings.h take size_t as an argument.

>From ad9c0fe5aea4b988364180c089d0a61034ed3718 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Fri, 24 Jan 2025 13:26:21 -0800
Subject: [PATCH] [libc] Include size_t type header in strings.h

A number of functions in strings.h take size_t as an argument.
---
 libc/include/strings.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libc/include/strings.yaml b/libc/include/strings.yaml
index e672dca6a94ddd..b6aa8f6d60b270 100644
--- a/libc/include/strings.yaml
+++ b/libc/include/strings.yaml
@@ -1,7 +1,8 @@
 header: strings.h
 header_template: strings.h.def
 macros: []
-types: []
+types:
+  - type_name: size_t
 enums: []
 objects: []
 functions:



More information about the libc-commits mailing list