diff options
Diffstat (limited to 'cpukit/include/rtems/confdefs.h')
-rw-r--r-- | cpukit/include/rtems/confdefs.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index 64577b92d7..15d0947ea3 100644 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -2242,15 +2242,11 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #define _CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS 0 #endif -#if defined(RTEMS_NEWLIB) - struct _reent *__getreent(void) - { - #ifdef CONFIGURE_DISABLE_NEWLIB_REENTRANCY - return _GLOBAL_REENT; - #else - return _Thread_Get_executing()->libc_reent; - #endif - } +#if defined(RTEMS_NEWLIB) && !defined(CONFIGURE_DISABLE_NEWLIB_REENTRANCY) +struct _reent *__getreent(void) +{ + return _Thread_Get_executing()->libc_reent; +} #endif #endif |