mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-17 12:01:53 +08:00
3aaa66f813
* 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.
17 lines
293 B
C
17 lines
293 B
C
/* The signgam variable is stored in the reentrancy structure. This
|
|
function returns its address for use by the macro signgam defined in
|
|
math.h. */
|
|
|
|
#include <math.h>
|
|
#include <reent.h>
|
|
|
|
#ifndef _REENT_ONLY
|
|
|
|
int *
|
|
__signgam ()
|
|
{
|
|
return &_REENT->_new._reent._gamma_signgam;
|
|
}
|
|
|
|
#endif
|