Skip to content

Commit b10ddfa

Browse files
[libc] Fix missing includes in GPU scanf reader (llvm#128049)
In llvm#121215 the reader was reorganized and the definitions of the internal getc and ungetc functions were moved, but the includes that the GPU builder depends on were not. This patch moves the includes to the correct new place.
1 parent 5fadb3d commit b10ddfa

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

libc/src/stdio/scanf_core/reader.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
#include "src/__support/File/file.h"
1616
#endif
1717

18+
#if defined(LIBC_TARGET_ARCH_IS_GPU)
19+
#include "src/stdio/getc.h"
20+
#include "src/stdio/ungetc.h"
21+
#endif
22+
1823
#include "src/__support/macros/attributes.h" // For LIBC_INLINE
1924
#include "src/__support/macros/config.h"
2025

libc/src/stdio/scanf_core/vfscanf_internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
#if defined(LIBC_TARGET_ARCH_IS_GPU)
2020
#include "src/stdio/ferror.h"
21-
#include "src/stdio/getc.h"
22-
#include "src/stdio/ungetc.h"
2321
#endif
2422

2523
#include "hdr/types/FILE.h"

0 commit comments

Comments
 (0)