POSIX math: NV_NAN can be the right answer for nan().
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 8 Sep 2014 14:38:20 +0000 (10:38 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 8 Sep 2014 15:53:10 +0000 (11:53 -0400)
ext/POSIX/POSIX.xs

index 9df360e..5a32d74 100644 (file)
@@ -2351,7 +2351,9 @@ nan(s = 0)
        RETVAL = c99_nan(s ? s : "");
 #else
        RETVAL = NV_NAN;
+#  ifndef NV_NAN
        not_here("nan");
+#  endif
 #endif
     OUTPUT:
        RETVAL