On altos, the primitive input function is ao_getchar, not getchar master
authorKeith Packard <keithp@keithp.com>
Mon, 11 Dec 2017 20:09:30 +0000 (12:09 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 11 Dec 2017 20:09:30 +0000 (12:09 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
platform/altos/functions/stdio/fgetc.c

index 65aa4a226fc9425d5395be34e5f21921fc73faf8..fe2805a9257900bb805f9605692df400d0d0c34b 100644 (file)
 
 #ifndef REGTEST
 
+#undef ao_getchar
+
+extern int ao_getchar(void);
+
 int fgetc( struct _PDCLIB_file_t * stream )
 {
-    return getchar();
+    return ao_getchar();
 }
 
 #endif