1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/picolibc_syscalls_default: support new picolibc stdio globals

This commit is contained in:
Kaspar Schleiser 2021-10-18 12:01:24 +02:00
parent 1e1b213439
commit 27b9c6da06

View File

@ -235,11 +235,17 @@ static int picolibc_get(FILE *file)
FILE picolibc_stdio =
FDEV_SETUP_STREAM(picolibc_put, picolibc_get, picolibc_flush, _FDEV_SETUP_RW);
#ifdef PICOLIBC_STDIO_GLOBALS
FILE *const stdout = &picolibc_stdio;
FILE *const stdin = &picolibc_stdio;
FILE *const stderr = &picolibc_stdio;
#else
FILE *const __iob[] = {
&picolibc_stdio, /* stdin */
&picolibc_stdio, /* stdout */
&picolibc_stdio, /* stderr */
&picolibc_stdio, /* stdin */
&picolibc_stdio, /* stdout */
&picolibc_stdio, /* stderr */
};
#endif
#include <thread.h>
/**