Severin Teona - SAOC Milestone 3 Updates 2 & 3 - Druntime for Microcontrollers
IGotD-
nise at nise.com
Fri Dec 11 10:27:29 UTC 2020
On Friday, 11 December 2020 at 10:16:41 UTC, Severin Teona wrote:
> - to solve the error, I started versioning the
> core/stdc/stdio.h and defined those symbols in the same way
> they are defined in newlib (I will probably import the newlib
> library later).
private extern(C) _reent *__getreent();
FILE* __stdin()() { return cast(FILE*)(__getreent()._stdin); }
FILE* __stdout()() { return cast(FILE*)(__getreent()._stdout); }
FILE* __stderr()() { return cast(FILE*)(__getreent()._stderr); }
///
alias __stdin stdin;
///
alias __stdout stdout;
///
alias __stderr stderr;
Is this how you solved stdin/out/err?
More information about the Digitalmars-d
mailing list