Files
2018-02-18 14:39:59 +00:00

21 lines
300 B
C

/* default reentrant pointer when multithread enabled */
#include <_ansi.h>
#include <reent.h>
#include <sys/iosupport.h>
#ifdef __getreent
#undef __getreent
#endif
struct _reent *__getreent() {
if ( __syscalls.getreent ) {
return __syscalls.getreent();
} else {
return _impure_ptr;
}
}