Build fix for pre-C++11 compilers
Broken by b5a554b9a6
(Avoid -Wdouble-promotion warnings, 2020-10-14)
This commit is contained in:
@@ -53,13 +53,13 @@
|
|||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Things are simple with C++11: we have everything we need in std.
|
Things are simple with C++11: we have everything we need in std.
|
||||||
Eventually we will only have this section and not the legacy stuff below.
|
Eventually we will only have this section and not the legacy stuff below.
|
||||||
*/
|
*/
|
||||||
#if __cplusplus >= 201103
|
#if __cplusplus >= 201103
|
||||||
#include <cmath>
|
|
||||||
|
|
||||||
#define wxFinite(x) std::isfinite(x)
|
#define wxFinite(x) std::isfinite(x)
|
||||||
#define wxIsNaN(x) std::isnan(x)
|
#define wxIsNaN(x) std::isnan(x)
|
||||||
#else /* C++98 */
|
#else /* C++98 */
|
||||||
|
Reference in New Issue
Block a user