From 20f71c3a97eb4c7ecfa9754a0ca42855db935999 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 11 Dec 2017 12:09:30 -0800 Subject: [PATCH] On altos, the primitive input function is ao_getchar, not getchar Signed-off-by: Keith Packard --- platform/altos/functions/stdio/fgetc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/altos/functions/stdio/fgetc.c b/platform/altos/functions/stdio/fgetc.c index 65aa4a2..fe2805a 100644 --- a/platform/altos/functions/stdio/fgetc.c +++ b/platform/altos/functions/stdio/fgetc.c @@ -10,9 +10,13 @@ #ifndef REGTEST +#undef ao_getchar + +extern int ao_getchar(void); + int fgetc( struct _PDCLIB_file_t * stream ) { - return getchar(); + return ao_getchar(); } #endif -- 2.30.2