Sfoglia il codice sorgente

msvc doesn't have C99 FP_ZERO...

Samuel Thibault 10 anni fa
parent
commit
2a5a725a15
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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);