From 3aaa66f813d099dbb04e637459e168800d231aa3 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 29 Jan 2001 22:40:50 +0000 Subject: 2001-01-29 Jeff Johnston * 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. --- newlib/libc/include/math.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'newlib/libc/include') 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. */ -- cgit v1.1