diff options
Diffstat (limited to 'src/c/auxiliaryFunctions/isnan')
-rw-r--r-- | src/c/auxiliaryFunctions/isnan/cisnans.c | 11 | ||||
-rw-r--r-- | src/c/auxiliaryFunctions/isnan/disnans.c | 8 | ||||
-rw-r--r-- | src/c/auxiliaryFunctions/isnan/sisnans.c | 8 | ||||
-rw-r--r-- | src/c/auxiliaryFunctions/isnan/zisnans.c | 7 |
4 files changed, 15 insertions, 19 deletions
diff --git a/src/c/auxiliaryFunctions/isnan/cisnans.c b/src/c/auxiliaryFunctions/isnan/cisnans.c index 7fc0759..623cea0 100644 --- a/src/c/auxiliaryFunctions/isnan/cisnans.c +++ b/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/src/c/auxiliaryFunctions/isnan/disnans.c b/src/c/auxiliaryFunctions/isnan/disnans.c index 0d0a569..99b5b66 100644 --- a/src/c/auxiliaryFunctions/isnan/disnans.c +++ b/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/src/c/auxiliaryFunctions/isnan/sisnans.c b/src/c/auxiliaryFunctions/isnan/sisnans.c index 201fd31..905890b 100644 --- a/src/c/auxiliaryFunctions/isnan/sisnans.c +++ b/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/src/c/auxiliaryFunctions/isnan/zisnans.c b/src/c/auxiliaryFunctions/isnan/zisnans.c index b7ebc1b..95cfd97 100644 --- a/src/c/auxiliaryFunctions/isnan/zisnans.c +++ b/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" |