svn commit: r399131 - head/math/py-numpy/files
Olivier Duchateau
olivierd at FreeBSD.org
Mon Oct 12 14:19:18 UTC 2015
Author: olivierd
Date: Mon Oct 12 14:19:17 2015
New Revision: 399131
URL: https://svnweb.freebsd.org/changeset/ports/399131
Log:
Unbreak build on FreeBSD 9
Reported by: pkg-fallout, <soralx at cydem.org> (private email)
Added:
head/math/py-numpy/files/patch-numpy_core_src_npymath_npy__math__complex.c.src (contents, props changed)
Added: head/math/py-numpy/files/patch-numpy_core_src_npymath_npy__math__complex.c.src
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-numpy/files/patch-numpy_core_src_npymath_npy__math__complex.c.src Mon Oct 12 14:19:17 2015 (r399131)
@@ -0,0 +1,36 @@
+Revert changes in revision c15f774, "remove a bunch of compiler warnings"
+
+--- numpy/core/src/npymath/npy_math_complex.c.src.orig 2015-08-11 17:03:43 UTC
++++ numpy/core/src/npymath/npy_math_complex.c.src
+@@ -33,13 +33,12 @@
+ */
+ #include "npy_math_common.h"
+ #include "npy_math_private.h"
+-#include <numpy/utils.h>
+
+
+ #define raise_inexact() do { volatile npy_float junk = 1 + tiny; } while(0)
+
+
+-static __COMP_NPY_UNUSED npy_float tiny = 3.9443045e-31f;
++static npy_float tiny = 3.9443045e-31f;
+
+
+ /**begin repeat
+@@ -184,8 +183,6 @@ npy_carg at c@(@ctype@ z)
+ #define SCALED_CEXP_LOWERL 11357.216553474703895L
+ #define SCALED_CEXP_UPPERL 22756.021937783004509L
+
+-#ifndef HAVE_CEXP at C@
+-
+ static
+ @ctype@
+ _npy_scaled_cexp at c@(@type@ x, @type@ y, npy_int expt)
+@@ -212,6 +209,7 @@ _npy_scaled_cexp at c@(@type@ x, @type@ y,
+ npy_ldexp at c@(mant * mantsin, expt + exsin));
+ }
+
++#ifndef HAVE_CEXP at C@
+ @ctype@
+ npy_cexp at c@(@ctype@ z)
+ {
More information about the svn-ports-all
mailing list