From 281e855ba62be81652aadedb0466d6e16c2f7632 Mon Sep 17 00:00:00 2001 From: Henri Casanova Date: Tue, 6 May 2014 13:09:23 -1000 Subject: [PATCH] Added a definition of MPI_File (MPI-IO) to allow smpicc to compile code that declare MPI_File variables. --- include/smpi/smpi.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index 314636085e..0cc6f08cb9 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -161,6 +161,15 @@ typedef enum MPIR_Topo_type { typedef ptrdiff_t MPI_Aint; typedef long long MPI_Offset; +// To compile code that declare MPI_File variables +struct s_empty { +#if !defined(__GNUC__) || defined(__STRICT_ANSI__) + char empty; +#endif +}; +typedef struct s_empty *MPI_File; + + struct s_smpi_mpi_datatype; typedef struct s_smpi_mpi_datatype *MPI_Datatype; -- 2.20.1