This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sunmath.h is only used for builds using long doubles
authorJan Dubois <jand@activestate.com>
Sat, 6 Jun 2015 00:18:20 +0000 (17:18 -0700)
committerJan Dubois <jan@jandubois.com>
Mon, 8 Jun 2015 20:21:23 +0000 (13:21 -0700)
perl.h

diff --git a/perl.h b/perl.h
index 2ece214..be9fc9a 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -4366,7 +4366,7 @@ static const union { unsigned int __i; float __f; } __PL_inf_u =
 #if !defined(NV_NAN) && defined(QNAN)
 #  define NV_NAN (NV)QNAN
 #endif
-#if !defined(NV_NAN) && defined(I_SUNMATH)
+#if !defined(NV_NAN) && defined(USE_LONG_DOUBLE) && defined(I_SUNMATH)
 #  define NV_NAN (NV)quiet_nan()
 #endif
 #if !defined(NV_NAN)