Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[smpi] Leave the underlying structure of MPI_File opaque
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 2 Oct 2014 09:09:14 +0000 (11:09 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 2 Oct 2014 09:09:14 +0000 (11:09 +0200)
include/smpi/smpi.h

index 517ecb7..a2db68b 100644 (file)
@@ -155,14 +155,8 @@ 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_MPI_File;
+typedef struct s_MPI_File *MPI_File;
 
 struct s_smpi_mpi_datatype;
 typedef struct s_smpi_mpi_datatype *MPI_Datatype;