summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-03 14:31:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-03 14:35:57 +0100
commit3a987e9ae9aa72f361bb7a549102cb66c5abd268 (patch)
tree79b7c7a8cdd6acda02bc9080a42106b2875871b8
parentc012e1ed0751cd549033aac6cf5507ecf2b5d754 (diff)
compat/nan: remove pointless extern "C"
-rw-r--r--compat/nan.cpp8
-rw-r--r--compat/nan.hpp6
2 files changed, 7 insertions, 7 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);
diff --git a/compat/nan.hpp b/compat/nan.hpp
index 0a2c900c..0361367b 100644
--- a/compat/nan.hpp
+++ b/compat/nan.hpp
@@ -3,9 +3,9 @@
#include "export.hpp"
#if defined(__GNUC__)
-extern "C" OTR_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double value);
+OTR_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double value);
#elif defined(_WIN32)
-extern "C" OTR_COMPAT_EXPORT __declspec(noinline) bool nanp(double value);
+OTR_COMPAT_EXPORT __declspec(noinline) bool nanp(double value);
#else
-extern "C" OTR_COMPAT_EXPORT bool nanp(double value);
+OTR_COMPAT_EXPORT bool nanp(double value);
#endif