diff options
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/math.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index f092aff..255bf3b 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -185,8 +185,12 @@ extern float dremf _PARAMS((float, float)); #endif /* ! defined (_REENT_ONLY) */ /* The gamma functions use a global variable, signgam. */ +#ifndef _REENT_ONLY +#define signgam (*__signgam()) +extern int *__signgam _PARAMS((void)); +#endif /* ! defined (_REENT_ONLY) */ -extern __IMPORT int signgam; +#define __signgam_r(ptr) ((ptr)->_new._reent._gamma_signgam) /* The exception structure passed to the matherr routine. */ |