aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/transform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libsample/transform.cpp')
-rw-r--r--tests/libsample/transform.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libsample/transform.cpp b/tests/libsample/transform.cpp
index 2984ed3..368a868 100644
--- a/tests/libsample/transform.cpp
+++ b/tests/libsample/transform.cpp
@@ -24,7 +24,13 @@
#include "transform.h"
+#ifdef _WIN32
+#include <math.h>
+#include <float.h>
+static inline bool isfinite(double a) { return _finite(a); }
+#else
#include <cmath>
+#endif
using namespace std;