File tree Expand file tree Collapse file tree 4 files changed +50
-0
lines changed
Expand file tree Collapse file tree 4 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,14 @@ add_proxy_header_library(
135135 libc.include .llvm-libc-types.struct_tm
136136)
137137
138+ add_proxy_header_library(
139+ rsize_t
140+ HDRS
141+ rsize_t.h
142+ FULL_BUILD_DEPENDS
143+ libc.include .llvm-libc-types.rsize_t
144+ )
145+
138146add_proxy_header_library(
139147 size_t
140148 HDRS
Original file line number Diff line number Diff line change 1+ //===-- Proxy for rsize_t -------------------------------------------------===//
2+ //
3+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+ // See https://llvm.org/LICENSE.txt for license information.
5+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+ //
7+ //===----------------------------------------------------------------------===//
8+ #ifndef LLVM_LIBC_HDR_TYPES_SIZE_T_H
9+ #define LLVM_LIBC_HDR_TYPES_SIZE_T_H
10+
11+ #ifdef LIBC_FULL_BUILD
12+
13+ #include "include/llvm-libc-types/rsize_t.h"
14+
15+ #else
16+
17+ #define __need_rsize_t
18+ #include <stddef.h>
19+ #undef __need_rsize_t
20+
21+ #endif // LIBC_FULL_BUILD
22+
23+ #endif // LLVM_LIBC_HDR_TYPES_SIZE_T_H
Original file line number Diff line number Diff line change 11add_header(off64_t HDR off64_t.h)
2+ add_header(rsize_t HDR rsize_t.h)
23add_header(size_t HDR size_t.h)
34add_header(ssize_t HDR ssize_t.h)
45add_header(__atfork_callback_t HDR __atfork_callback_t.h)
Original file line number Diff line number Diff line change 1+ //===-- Definition of size_t types ----------------------------------------===//
2+ //
3+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+ // See https://llvm.org/LICENSE.txt for license information.
5+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+ //
7+ //===----------------------------------------------------------------------===//
8+
9+ #ifndef LLVM_LIBC_TYPES_RSIZE_T_H
10+ #define LLVM_LIBC_TYPES_RSIZE_T_H
11+
12+ #ifdef LIBC_HAS_ANNEX_K
13+
14+ typedef __SIZE_TYPE__ rsize_t ;
15+
16+ #endif // LIBC_HAS_ANNEX_K
17+
18+ #endif // LLVM_LIBC_TYPES_RSIZE_T_H
You can’t perform that action at this time.
0 commit comments