Explorar el Código

Fix build on mingw64

Samuel Thibault hace 4 años
padre
commit
548ab7664d
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      mpi/tests/driver.c

+ 9 - 0
mpi/tests/driver.c

@@ -18,6 +18,14 @@
 #include <math.h>
 #include <math.h>
 #include "helper.h"
 #include "helper.h"
 
 
+#if !defined(STARPU_HAVE_SETENV)
+#warning setenv is not defined. Skipping test
+int main(int argc, char **argv)
+{
+	return STARPU_TEST_SKIPPED;
+}
+#else
+
 int main(int argc, char **argv)
 int main(int argc, char **argv)
 {
 {
 	int ret, rank, size, i;
 	int ret, rank, size, i;
@@ -132,3 +140,4 @@ int main(int argc, char **argv)
 
 
 	return 0;
 	return 0;
 }
 }
+#endif