diff options
| author | Michael Jones <michaelrj@google.com> | 2024-07-11 11:09:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 11:09:51 -0700 |
| commit | 5aed6d67e3f051262c67e3295476bf13cfc099c4 (patch) | |
| tree | 457f1476114d6f448d17d5611de32dc5f16ee971 /libc/src/stdio/generic/fread.cpp | |
| parent | 05b7b22a2f28f7bdeea61e6e55871c2db4cdab3b (diff) | |
Reland: [libc] Move off_t and stdio macros to proxy hdrs (#98384)
reland of https://github.com/llvm/llvm-project/pull/98215
Additionally adds proxy headers for FILE and the fopencookie types
The arm32 build has been failing due to redefinitions of the off_t type.
This patch fixes this by moving off_t to a proper proxy header. To do
this, it also moves stdio macros to a proxy header to hopefully avoid
including this proxy header alongside this public stdio.h.
Diffstat (limited to 'libc/src/stdio/generic/fread.cpp')
| -rw-r--r-- | libc/src/stdio/generic/fread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/src/stdio/generic/fread.cpp b/libc/src/stdio/generic/fread.cpp index e8bd2517df6f..986828b86b34 100644 --- a/libc/src/stdio/generic/fread.cpp +++ b/libc/src/stdio/generic/fread.cpp @@ -9,8 +9,9 @@ #include "src/stdio/fread.h" #include "src/__support/File/file.h" +#include "hdr/types/FILE.h" #include "src/errno/libc_errno.h" -#include <stdio.h> +#include <stddef.h> namespace LIBC_NAMESPACE { |
