Import of pkgsrc-2014Q1
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
$NetBSD: patch-ext_standard_basic__functions.c,v 1.2 2013/08/17 13:15:21 taca Exp $
|
||||
|
||||
Work around VAX FP lack of INF
|
||||
|
||||
--- ext/standard/basic_functions.c.orig 2013-08-15 20:42:04.000000000 +0000
|
||||
+++ ext/standard/basic_functions.c
|
||||
@@ -3519,7 +3519,7 @@ PHPAPI double php_get_nan(void) /* {{{ *
|
||||
|
||||
PHPAPI double php_get_inf(void) /* {{{ */
|
||||
{
|
||||
-#if HAVE_HUGE_VAL_INF
|
||||
+#if defined(HAVE_HUGE_VAL_INF) || defined(__vax__)
|
||||
return HUGE_VAL;
|
||||
#elif defined(__i386__) || defined(_X86_) || defined(ALPHA) || defined(_ALPHA) || defined(__alpha)
|
||||
double val = 0.0;
|
||||
Reference in New Issue
Block a user