diff --git a/implot_internal.h b/implot_internal.h index 7d3ff49e..3847ce19 100644 --- a/implot_internal.h +++ b/implot_internal.h @@ -121,7 +121,7 @@ static inline T ImRemap01(T x, T x0, T x1) { return (x - x0) / (x1 - x0); } // Returns always positive modulo (assumes r != 0) static inline int ImPosMod(int l, int r) { return (l % r + r) % r; } // Returns true if val is NAN -static inline bool ImNan(double val) { return isnan(val); } +static inline bool ImNan(double val) { return std::isnan(val); } // Returns true if val is NAN or INFINITY static inline bool ImNanOrInf(double val) { return !(val >= -DBL_MAX && val <= DBL_MAX) || ImNan(val); } // Turns NANs to 0s