Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://github.com/simgrid/simgrid
[simgrid.git] / teshsuite / xbt / parmap_bench / parmap_bench.cpp
index f7d0fcce862ed11cbe4c286f700cc88fac171971..9f74d1cc5f915d5ab72f7c95caa134a5b08ef30c 100644 (file)
@@ -47,13 +47,12 @@ static std::string parmap_mode_name(e_xbt_parmap_mode_t mode)
 
 static bool parmap_skip_mode(e_xbt_parmap_mode_t mode)
 {
-#if !HAVE_FUTEX_H
-  if (mode == XBT_PARMAP_FUTEX) {
+  if (mode == XBT_PARMAP_FUTEX && not HAVE_FUTEX_H) {
     std::cout << "not available\n";
     return true;
-  } else
-#endif
+  } else {
     return false;
+  }
 }
 
 static unsigned fibonacci(unsigned n)