diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-28 05:22:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-28 05:22:42 +0200 |
commit | 5e66cd0e2f0103041a37bd8844cb820ca47b41dc (patch) | |
tree | 4d29456fe708cae84cc8c1004c602db0183d7b39 /opentrack-logic/nan.hpp | |
parent | 1d95552b0627c825190fef196d82144cb1ddd502 (diff) |
logic/nan: move prototype to header
Diffstat (limited to 'opentrack-logic/nan.hpp')
-rw-r--r-- | opentrack-logic/nan.hpp | 9 |
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 |