aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/math.h6
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. */