Package: lorene / 0.0.0~cvs20161116+dfsg-1

infinity Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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 <cfloat>
-#define __infinity DBL_INFINITY
-#else
-#ifdef __hppa
-#include <cmath>
-#define __infinity HUGE_VAL
-#else
-#ifdef __linux
-#include <cmath>
-#define __infinity HUGE_VAL
-#else
-#ifdef __aix
-#include <cmath>
-#define __infinity HUGE_VAL
-#else
-#ifdef __ppc__
-#include <cmath>
-#define __infinity INFINITY
-#else
-#ifdef __i386__
-#include <cmath>
-#define __infinity INFINITY
-#else
-#ifdef __x86_64__
 #include <cmath>
 #define __infinity INFINITY
-#else
-extern double __infinity ;
-#endif
-#endif
-#endif
-#endif
-#endif
-#endif
-#endif
 
 #endif