diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-03-13 00:41:51 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-03-13 00:41:51 +0000 |
commit | d6083e444522cedf943784098e5c0b0c01e3c3e1 (patch) | |
tree | bd41b8b48e053d18296efa543fa6619e93a1fe25 /perl.h | |
parent | 6a06028f6a761e37a22e953f51c972248fbe4c7d (diff) | |
download | perl-d6083e444522cedf943784098e5c0b0c01e3c3e1.tar.gz |
Solaris long double fixes from Alan Burlison.
p4raw-id: //depot/cfgperl@5687
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1145,8 +1145,15 @@ typedef NVTYPE NV; # endif # define NV_DIG LDBL_DIG # ifdef HAS_SQRTL -# define Perl_modf modfl -# define Perl_frexp frexpl + /* libsunmath doesn't have modfl and frexpl as of mid-March 2000 */ + /* XXX Configure probe for modfl and frexpl needed XXX */ +# if defined(__sun) && defined(__svr4) +# define Perl_modf(x,y) ((long double)modf((double)(x),(double*)(y))) +# define Perl_frexp(x) ((long double)frexp((double)(x))) +# else +# define Perl_modf modfl +# define Perl_frexp frexpl +# endif # define Perl_cos cosl # define Perl_sin sinl # define Perl_sqrt sqrtl |