Skip to content

Commit 00af38f

Browse files
michaelrj-googleaaryanshukla
authored andcommitted
[libc] fix baremetal getchar (llvm#98515)
baremetal getchar got the wrong find/replace in the initial patch. This patch fixes it.
1 parent fb7fd07 commit 00af38f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/src/stdio/baremetal/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ add_entrypoint_object(
55
HDRS
66
../getchar.h
77
DEPENDS
8-
libc.include.stdio
8+
libc.hdr.stdio_macros
99
libc.src.__support.OSUtil.osutil
1010
libc.src.__support.CPP.string_view
1111
)

libc/src/stdio/baremetal/getchar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "src/stdio/getchar.h"
1010
#include "src/__support/OSUtil/io.h"
1111

12-
#include "hdr/types/FILE.h"
12+
#include "hdr/stdio_macros.h" // for EOF.
1313

1414
namespace LIBC_NAMESPACE {
1515

0 commit comments

Comments
 (0)