Line 0
Link Here
|
|
|
1 |
--- magick/magick-type.h.orig 2014-08-08 16:27:39.000000000 +0200 |
2 |
+++ magick/magick-type.h 2014-12-19 17:31:35.000000000 +0100 |
3 |
@@ -45,12 +45,16 @@ extern "C" { |
4 |
*/ |
5 |
#if MAGICKCORE_SIZEOF_FLOAT_T == 0 |
6 |
typedef float MagickRealType; |
7 |
+#define fabs fabsf |
8 |
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_FLOAT) |
9 |
typedef float MagickRealType; |
10 |
+#define fabs fabsf |
11 |
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_DOUBLE) |
12 |
typedef double MagickRealType; |
13 |
+#define fabs fabs |
14 |
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_LONG_DOUBLE) |
15 |
typedef long double MagickRealType; |
16 |
+#define fabs fabsl |
17 |
#else |
18 |
# error Your float_t type is neither a float, nor a double, nor a long double |
19 |
#endif |
20 |
@@ -74,12 +78,16 @@ typedef unsigned char Quantum; |
21 |
*/ |
22 |
#if MAGICKCORE_SIZEOF_FLOAT_T == 0 |
23 |
typedef float MagickRealType; |
24 |
+#define fabs fabsf |
25 |
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_FLOAT) |
26 |
typedef float MagickRealType; |
27 |
+#define fabs fabsf |
28 |
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_DOUBLE) |
29 |
typedef double MagickRealType; |
30 |
+#define fabs fabs |
31 |
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_LONG_DOUBLE) |
32 |
typedef long double MagickRealType; |
33 |
+#define fabs fabsl |
34 |
#else |
35 |
# error Your float_t type is neither a float, nor a double, nor a long double |
36 |
#endif |
37 |
@@ -103,10 +111,13 @@ typedef unsigned short Quantum; |
38 |
*/ |
39 |
#if MAGICKCORE_SIZEOF_DOUBLE_T == 0 |
40 |
typedef double MagickRealType; |
41 |
+#define fabs fabs |
42 |
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_DOUBLE) |
43 |
typedef double MagickRealType; |
44 |
+#define fabs fabs |
45 |
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_LONG_DOUBLE) |
46 |
typedef long double MagickRealType; |
47 |
+#define fabs fabsl |
48 |
#else |
49 |
# error Your double_t type is neither a float, nor a double, nor a long double |
50 |
#endif |
51 |
@@ -131,6 +142,7 @@ typedef long double SignedQuantum; |
52 |
typedef long double Quantum; |
53 |
#define QuantumRange 18446744073709551615.0 |
54 |
#define QuantumFormat "%g" |
55 |
+#define fabs fabsl |
56 |
#else |
57 |
#if !defined(_CH_) |
58 |
# error "MAGICKCORE_QUANTUM_DEPTH must be one of 8, 16, 32, or 64" |