diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-16 12:34:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-16 12:35:51 +0200 |
commit | 0760fe011114fa440275b487eaf766b015f40e5b (patch) | |
tree | a0141fb291b7dc1e38d16dd0eb2c767ec93b310a /opentrack/nan.cpp | |
parent | 60460f56cabe0155996adf8ba5e9f6730ef0b203 (diff) |
all: split "api" into "api" and "logic"
Here, the "logic" module has all the stuff for building one's own
graphical user interface.
The "api" module has stuff used by other trackers.
While at it, each of "api", "logic", and "compat" need their own export
headers. This is because of preprocessor symbol clashes.
This is all because a change in the "gui"-only dependency required a
relink of all the trackers, protocols, and flters. It takes too long
when building in the release configuration. With the split, only the
"gui" module gets rebuilt. Since it has close to no static dependencies,
it's fast enough.
Diffstat (limited to 'opentrack/nan.cpp')
-rw-r--r-- | opentrack/nan.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/opentrack/nan.cpp b/opentrack/nan.cpp deleted file mode 100644 index 2522ba38..00000000 --- a/opentrack/nan.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include <cmath> - -#if defined(__GNUC__) -bool __attribute__ ((noinline)) nanp(double value) -#elif defined(_WIN32) -__declspec(noinline) bool nanp(double value) -#else -bool nanp(double value) -#endif -{ - using std::isnan; - using std::isinf; - - const volatile double x = value; - return isnan(x) || isinf(x); -}
\ No newline at end of file |