mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-22 15:07:43 +08:00
b1a388799d
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.
23 lines
270 B
C
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
|