Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #2 from mquinson/master
[simgrid.git] / src / smpi / smpi_mpi_dt_private.h
index f0e612f..ef5f86e 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "private.h"
 
+SG_BEGIN_DECL()
+
 #define DT_FLAG_DESTROYED     0x0001  /**< user destroyed but some other layers still have a reference */
 #define DT_FLAG_COMMITED      0x0002  /**< ready to be used for a send/recv operation */
 #define DT_FLAG_CONTIGUOUS    0x0004  /**< contiguous datatype */
@@ -32,7 +34,7 @@
  */
 #define DT_FLAG_BASIC         (DT_FLAG_PREDEFINED | DT_FLAG_CONTIGUOUS | DT_FLAG_NO_GAPS | DT_FLAG_DATA | DT_FLAG_COMMITED)
 
-extern MPI_Datatype MPI_PTR;
+extern const MPI_Datatype MPI_PTR;
 
 
 //*****************************************************************************************
@@ -213,4 +215,6 @@ XBT_PRIVATE s_smpi_mpi_struct_t* smpi_datatype_struct_create(int* block_lengths,
                                                   int block_count,
                                                   MPI_Datatype* old_types);
 
+SG_END_DECL()
+
 #endif