diff --git a/include/chameleon/runtime_struct.h b/include/chameleon/runtime_struct.h
index 2488a4b25e9b3f8e9b1525fb7618494798e14737..77cb788e35c8ffacd934b31a345292bf017186ac 100644
--- a/include/chameleon/runtime_struct.h
+++ b/include/chameleon/runtime_struct.h
@@ -25,8 +25,6 @@
 
 #include "chameleon/types.h"
 
-BEGIN_C_DECLS
-
 /**
  * Datatype for distributed version
  */
@@ -41,6 +39,8 @@ typedef uintptr_t MPI_Comm;
 #endif
 #endif
 
+BEGIN_C_DECLS
+
 /**
  * @brief Ids of the runtime supported by the RUNTIME API
  */