From 9db4e9e756c436b624b45ca8c32ca1526122ef46 Mon Sep 17 00:00:00 2001 From: guberathome <84842184+guberathome@users.noreply.github.com> Date: Tue, 21 Jan 2025 00:54:43 +0100 Subject: [PATCH] fix fallback/stdio build (#196) Provide stub for sdSleepMillis() in pf_io_stdio.c Makefile: correct comment regarding IO_SOURCE for stdio builds --- csrc/stdio/pf_io_stdio.c | 4 ++++ platforms/unix/Makefile | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/csrc/stdio/pf_io_stdio.c b/csrc/stdio/pf_io_stdio.c index 7fe6ef0..11856c6 100644 --- a/csrc/stdio/pf_io_stdio.c +++ b/csrc/stdio/pf_io_stdio.c @@ -58,3 +58,7 @@ void sdTerminalTerm( void ) { } +cell_t sdSleepMillis(cell_t msec) +{ + return PF_ERR_NOT_SUPPORTED; +} diff --git a/platforms/unix/Makefile b/platforms/unix/Makefile index 0e4eacb..f4dfa9d 100644 --- a/platforms/unix/Makefile +++ b/platforms/unix/Makefile @@ -29,9 +29,10 @@ ifndef WIDTHOPT WIDTHOPT= endif ifndef IO_SOURCE + # for POSIX systems: IO_SOURCE = pf_io_posix.c pf_fileio_stdio.c - #IO_SOURCE = pf_io_stdio.c - # TODO: add demo what else is needed for this to work + # for generic / any system supporting stdio: + # IO_SOURCE = pf_io_stdio.c pf_fileio_stdio.c endif SRCDIR = ../..