summaryrefslogtreecommitdiffhomepage
path: root/opentrack-logic/nan.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-logic/nan.hpp')
-rw-r--r--opentrack-logic/nan.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/opentrack-logic/nan.hpp b/opentrack-logic/nan.hpp
new file mode 100644
index 00000000..c17cabfd
--- /dev/null
+++ b/opentrack-logic/nan.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+#if defined(__GNUC__)
+bool __attribute__ ((noinline)) nanp(double value);
+#elif defined(_WIN32)
+__declspec(noinline) bool nanp(double value);
+#else
+bool nanp(double value);
+#endif