diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-03 14:31:41 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-03 14:35:57 +0100 |
commit | 3a987e9ae9aa72f361bb7a549102cb66c5abd268 (patch) | |
tree | 79b7c7a8cdd6acda02bc9080a42106b2875871b8 /compat/nan.cpp | |
parent | c012e1ed0751cd549033aac6cf5507ecf2b5d754 (diff) |
compat/nan: remove pointless extern "C"
Diffstat (limited to 'compat/nan.cpp')
-rw-r--r-- | compat/nan.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compat/nan.cpp b/compat/nan.cpp index 2659ad07..338fb789 100644 --- a/compat/nan.cpp +++ b/compat/nan.cpp @@ -4,7 +4,7 @@ # include <cmath> # define my_isnan std::isnan # define my_isinf std::isinf -extern "C" OTR_COMPAT_EXPORT __declspec(noinline) bool nanp(double x) +OTR_COMPAT_EXPORT __declspec(noinline) bool nanp(double x) #elif defined __MINGW32__ int __cdecl my_isnan(double)__asm__("__isnan"); @@ -18,17 +18,17 @@ int __cdecl my_fpclassify(double)__asm__("___fpclassify"); #define my_isinf(x) (my_fpclassify(x) == FP_INFINITE) -extern "C" OTR_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double x) +OTR_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double x) #elif defined __APPLE__ # include <math.h> # define my_isnan(x) isnan(x) # define my_isinf(x) isinf(x) -extern "C" OTR_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double x) +OTR_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double x) #else int my_isnan(double)__asm__("isnan"); int my_isinf(double)__asm__("isinf"); -extern "C" OTR_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double x) +OTR_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double x) #endif { return my_isnan(x) || my_isinf(x); |