Description: unconditionally use INFINITY from cmath as __infinity Upstream has a number of definitions for __infinity, based on a mixture of architecture and platform. This list is incomplete, not functional (FTBFS on Debian alpha), and defaults to a random floating point value on any architecture unknown to upstream. Author: Thibaut Paumard Origin: vendor Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845437 Forwarded: yes Last-Update: 2016-11-23 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/C++/Include/nbr_spx.h +++ b/C++/Include/nbr_spx.h @@ -89,6 +89,7 @@ /* * $Id: nbr_spx.h,v 1.6 2014/10/06 15:09:40 j_novak Exp $ * $Log: nbr_spx.h,v $ + * * Revision 1.6 2014/10/06 15:09:40 j_novak * Modified #include directives to use c++ syntax. * @@ -133,41 +134,7 @@ * */ -#ifdef __alpha -#include -#define __infinity DBL_INFINITY -#else -#ifdef __hppa -#include -#define __infinity HUGE_VAL -#else -#ifdef __linux -#include -#define __infinity HUGE_VAL -#else -#ifdef __aix -#include -#define __infinity HUGE_VAL -#else -#ifdef __ppc__ -#include -#define __infinity INFINITY -#else -#ifdef __i386__ -#include -#define __infinity INFINITY -#else -#ifdef __x86_64__ #include #define __infinity INFINITY -#else -extern double __infinity ; -#endif -#endif -#endif -#endif -#endif -#endif -#endif #endif