Skip to content

Commit

Permalink
Fix minimal stdio ungetc (and thus scanf)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed Jun 11, 2024
1 parent a83c611 commit 63e13de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mos-platform/common/c/stdio-minimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ __attribute__((weak)) int fputs(const char *__restrict__ s,

int getc(FILE *stream) { return fgetc(stream); }

static bool ungetc_buffer;
static char ungetc_buffer_full;
static char ungetc_buffer;
static bool ungetc_buffer_full;

static int getchar_wrapper(void *ctx) { return __getchar(); }
__attribute__((weak)) int getchar(void) {
Expand Down

0 comments on commit 63e13de

Please sign in to comment.