4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-22 15:07:43 +08:00
Joel Sherrill b1a388799d newlib/.../getreent.c: Allow to be provided by host and do so for RTEMS
RTEMS provides the option to have a global or per-thread reentrancy
as part of application configuration. As part of this, RTEMS provides
the implementation of __getreent() as appropriate. Allow the target
to determine if this method is present in libc.a.
2017-11-13 10:19:23 +01:00

23 lines
270 B
C

/* default reentrant pointer when multithread enabled */
#ifdef GETREENT_PROVIDED
int _dummy_getreent;
#else
#include <_ansi.h>
#include <reent.h>
#ifdef __getreent
#undef __getreent
#endif
struct _reent *
_DEFUN_VOID(__getreent)
{
return _impure_ptr;
}
#endif