Skip to content

Commit ad6617d

Browse files
committed
fixup! [libc] Allow using sscanf() and vsscanf() on baremetal targets.
1 parent e9b681a commit ad6617d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libc/src/stdio/scanf_core/reader.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111

1212
#include "hdr/types/FILE.h"
1313

14-
#if !defined(LIBC_COPT_STDIO_USE_SYSTEM_FILE) && !defined(LIBC_TARGET_OS_IS_BAREMETAL)
14+
#if !defined(LIBC_COPT_STDIO_USE_SYSTEM_FILE) && \
15+
!defined(LIBC_TARGET_OS_IS_BAREMETAL)
1516
#include "src/__support/File/file.h"
1617
#endif
1718

1819
#if defined(LIBC_TARGET_ARCH_IS_GPU)
1920
#include "src/stdio/getc.h"
2021
#include "src/stdio/ungetc.h"
2122
#elif defined(LIBC_TARGET_OS_IS_BAREMETAL)
22-
#include "src/stdio/getchar.h"
2323
#include "hdr/stdio_macros.h" // for EOF.
24+
#include "src/stdio/getchar.h"
2425
#endif
2526

2627
#include "src/__support/macros/attributes.h" // For LIBC_INLINE

0 commit comments

Comments
 (0)