aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-01-29 22:40:50 +0000
committerJeff Johnston <jjohnstn@redhat.com>2001-01-29 22:40:50 +0000
commit3aaa66f813d099dbb04e637459e168800d231aa3 (patch)
treee414ca81677237109cb042c9a3c907496893f59d /newlib/libc/include
parent2f3ea37bc8710a775cc1174c496c7fa559f95cdd (diff)
downloadnewlib-3aaa66f813d099dbb04e637459e168800d231aa3.zip
newlib-3aaa66f813d099dbb04e637459e168800d231aa3.tar.gz
newlib-3aaa66f813d099dbb04e637459e168800d231aa3.tar.bz2
2001-01-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (signgam): Change to errno-like solution using a function to return the address of the real signgam. * libc/reent/signgam.c: New file containing __signgam(). * libc/reent/Makefile.am: Added signgam.c to list of files. * libc/reent/Makefile.in: Regenerated.
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. */