diff --git kdchart/kdablibfakes/src/KDABLibFakes.h kdchart/kdablibfakes/src/KDABLibFakes.h
index ab10c46..5f17791 100644
|
|
|
29 | 29 | ** your option) use any later version of the GNU General Public |
30 | 30 | ** License if such license has been publicly approved by |
31 | 31 | ** Klarälvdalens Datakonsult AB (or its successors, if any). |
32 | | ** |
| 32 | ** |
33 | 33 | ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, |
34 | 34 | ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR |
35 | 35 | ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights |
36 | 36 | ** not expressly granted herein. |
37 | | ** |
| 37 | ** |
38 | 38 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
39 | 39 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
40 | 40 | ** |
… |
… |
|
46 | 46 | #if defined Q_OS_DARWIN |
47 | 47 | /* On Mac OS X, ensure that <cmath> will define std::isnan */ |
48 | 48 | #define _GLIBCPP_USE_C99 1 |
| 49 | #include <math.h> |
49 | 50 | #endif |
50 | 51 | |
51 | 52 | #include <cmath> |
… |
… |
|
73 | 74 | #define ISNAN(x ) _isnan(x ) |
74 | 75 | #define ISINF(x ) (!(_finite(x ) + _isnan(x ) ) ) |
75 | 76 | #elif defined (Q_OS_DARWIN) || defined (Q_OS_CYGWIN) |
76 | | #define ISNAN(x) std::isnan(x) |
77 | | #define ISINF(x) std::isinf(x) |
| 77 | #define ISNAN(x) isnan(double(x)) |
| 78 | #define ISINF(x) isinf(double(x)) |
78 | 79 | #else |
79 | 80 | #define ISNAN(x) isnan(x) |
80 | 81 | #define ISINF(x) isinf(x) |