summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/auxiliaryFunctions/isnan
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/auxiliaryFunctions/isnan')
-rw-r--r--2.3-1/src/c/auxiliaryFunctions/isnan/cisnans.c11
-rw-r--r--2.3-1/src/c/auxiliaryFunctions/isnan/disnans.c8
-rw-r--r--2.3-1/src/c/auxiliaryFunctions/isnan/sisnans.c8
-rw-r--r--2.3-1/src/c/auxiliaryFunctions/isnan/zisnans.c7
4 files changed, 15 insertions, 19 deletions
diff --git a/2.3-1/src/c/auxiliaryFunctions/isnan/cisnans.c b/2.3-1/src/c/auxiliaryFunctions/isnan/cisnans.c
index 7fc0759f..623cea0b 100644
--- a/2.3-1/src/c/auxiliaryFunctions/isnan/cisnans.c
+++ b/2.3-1/src/c/auxiliaryFunctions/isnan/cisnans.c
@@ -10,14 +10,11 @@
*
*/
+#ifdef _WIN32
+#include <math.h>
+#endif
-
-#ifdef _MSC_VER
-#include <float.h>
-#define isnan(x) _isnan((double)x)
-#endif
-
-#include "isnan.h"
+#include "isnan.h"
float cisnans(floatComplex in) {
diff --git a/2.3-1/src/c/auxiliaryFunctions/isnan/disnans.c b/2.3-1/src/c/auxiliaryFunctions/isnan/disnans.c
index 0d0a5699..99b5b664 100644
--- a/2.3-1/src/c/auxiliaryFunctions/isnan/disnans.c
+++ b/2.3-1/src/c/auxiliaryFunctions/isnan/disnans.c
@@ -10,10 +10,10 @@
*
*/
-#ifdef _MSC_VER
-#include <float.h>
-#define isnan(x) _isnan((double)x)
-#endif
+
+#ifdef _WIN32
+#include <math.h>
+#endif
#include "isnan.h"
diff --git a/2.3-1/src/c/auxiliaryFunctions/isnan/sisnans.c b/2.3-1/src/c/auxiliaryFunctions/isnan/sisnans.c
index 201fd31a..905890b8 100644
--- a/2.3-1/src/c/auxiliaryFunctions/isnan/sisnans.c
+++ b/2.3-1/src/c/auxiliaryFunctions/isnan/sisnans.c
@@ -10,10 +10,10 @@
*
*/
-#ifdef _MSC_VER
-#include <float.h>
-#define isnan(x) _isnan((double)x)
-#endif
+
+#ifdef _WIN32
+#include <math.h>
+#endif
#include "isnan.h"
diff --git a/2.3-1/src/c/auxiliaryFunctions/isnan/zisnans.c b/2.3-1/src/c/auxiliaryFunctions/isnan/zisnans.c
index b7ebc1bb..95cfd972 100644
--- a/2.3-1/src/c/auxiliaryFunctions/isnan/zisnans.c
+++ b/2.3-1/src/c/auxiliaryFunctions/isnan/zisnans.c
@@ -10,10 +10,9 @@
*
*/
-#ifdef _MSC_VER
-#include <float.h>
-#define isnan(x) _isnan((double)x)
-#endif
+#ifdef _WIN32
+#include <math.h>
+#endif
#include "isnan.h"