commit dc4087599e0405be270ac58ee63130ff86db4e46
parent 58e5aab1718cb91a77b77f6e3d950ad1682f7d3c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 19 Apr 2024 12:22:29 +0200
Fixed compilation of test_sdis_solve_probe_list without MPI
The test on the macro definition to conditionally include the MPI header
was inverted, so that the MPI header was included if it was _not_
enabled, whereas the intention was the opposite. As a result,
compilation failed on systems where MPI was not installed, even if it
was disabled.
Note that compilation did not fail if MPI was enabled, as the mpi.h
header file was included in another header file.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test_sdis_solve_probe_list.c b/src/test_sdis_solve_probe_list.c
@@ -22,7 +22,7 @@
#include <star/s3dut.h>
#include <star/ssp.h>
-#ifndef SDIS_ENABLE_MPI
+#ifdef SDIS_ENABLE_MPI
#include <mpi.h>
#endif