diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-02-05 09:34:50 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-02-05 10:16:37 +0100 |
commit | 3b389cb31f77fb86dcab87f8ad979cd852908fba (patch) | |
tree | 9d70fde118c689c535d39eaf6b85b350a39cddce /compat/nan.hpp | |
parent | 0d82a0ccc3c9bb49f28f18e7460a5366e06516bc (diff) |
compat/nan: retire
It was broken for MSVC where isnan doesn't work with
fast math. Fall back to `fpclassify'.
Adjust usages.
Diffstat (limited to 'compat/nan.hpp')
-rw-r--r-- | compat/nan.hpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compat/nan.hpp b/compat/nan.hpp deleted file mode 100644 index 0361367b..00000000 --- a/compat/nan.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#include "export.hpp" - -#if defined(__GNUC__) -OTR_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double value); -#elif defined(_WIN32) -OTR_COMPAT_EXPORT __declspec(noinline) bool nanp(double value); -#else -OTR_COMPAT_EXPORT bool nanp(double value); -#endif |