Explorar o código

msvc doesn't have C99 FP_ZERO...

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
2a5a725a15
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/common/utils.h

+ 4 - 0
src/common/utils.h

@@ -101,7 +101,11 @@
 	} while (0)
 
 
+#ifdef _MSC_VER
+#define _STARPU_IS_ZERO(a) (a == 0.0)
+#else
 #define _STARPU_IS_ZERO(a) (fpclassify(a) == FP_ZERO)
+#endif
 
 int _starpu_mkpath(const char *s, mode_t mode);
 void _starpu_mkpath_and_check(const char *s, mode_t mode);