Skip to content

Commit

Permalink
fix fallback/stdio build (#196)
Browse files Browse the repository at this point in the history
Provide stub for sdSleepMillis() in pf_io_stdio.c

Makefile: correct comment regarding IO_SOURCE for stdio builds
  • Loading branch information
guberathome authored Jan 20, 2025
1 parent d6eb909 commit 9db4e9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions csrc/stdio/pf_io_stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ void sdTerminalTerm( void )
{
}

cell_t sdSleepMillis(cell_t msec)
{
return PF_ERR_NOT_SUPPORTED;
}
5 changes: 3 additions & 2 deletions platforms/unix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ../..
Expand Down

0 comments on commit 9db4e9e

Please sign in to comment.