summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/nan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-compat/nan.cpp')
-rw-r--r--opentrack-compat/nan.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/opentrack-compat/nan.cpp b/opentrack-compat/nan.cpp
index 6c4b1f6d..899b907a 100644
--- a/opentrack-compat/nan.cpp
+++ b/opentrack-compat/nan.cpp
@@ -1,11 +1,12 @@
#include <cmath>
+#include "export.hpp"
#if defined(__GNUC__)
-extern "C" bool __attribute__ ((noinline)) nanp(double value)
+extern "C" OPENTRACK_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double value)
#elif defined(_WIN32)
-extern "C" __declspec(noinline) bool nanp(double value)
+extern "C" OPENTRACK_COMPAT_EXPORT __declspec(noinline) bool nanp(double value)
#else
-extern "C" bool nanp(double value)
+extern "C" OPENTRACK_COMPAT_EXPORT bool nanp(double value)
#endif
{
using std::isnan;