We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc1732e commit 17f7157Copy full SHA for 17f7157
libpdffit2/MathUtils.h
@@ -34,7 +34,10 @@ const double deltar_tol = 1.0e-3;
34
#ifdef _MSC_VER
35
#include <cfloat>
36
37
+#if _MSC_VER < 1800 // log2 has been available since MSVC 2013
38
inline double log2(double x) { return log(x)/log(2.0); }
39
+#endif
40
+
41
inline int isnan(double x) { return _isnan(x); }
42
inline double round(double x) { return (x < 0) ? ceil(x - 0.5) : floor(x + 0.5); }
43
0 commit comments