Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove useless #ifdef __cplusplus from hpp files.
[simgrid.git] / src / instr / instr_smpi.hpp
index e212b46..77951ef 100644 (file)
@@ -6,12 +6,9 @@
 #ifndef INSTR_SMPI_HPP
 #define INSTR_SMPI_HPP
 
 #ifndef INSTR_SMPI_HPP
 #define INSTR_SMPI_HPP
 
-#ifdef __cplusplus
-#include <string>
-#endif
-
 #include "smpi/smpi.h"
 #include "src/instr/instr_private.hpp"
 #include "smpi/smpi.h"
 #include "src/instr/instr_private.hpp"
+#include <string>
 
 SG_BEGIN_DECL()
 
 
 SG_BEGIN_DECL()
 
@@ -46,11 +43,9 @@ typedef struct smpi_trace_call_location {
   const char* previous_filename;
   int previous_linenumber;
 
   const char* previous_filename;
   int previous_linenumber;
 
-#ifdef __cplusplus
   std::string get_composed_key() {
     return std::string(previous_filename) + ':' + std::to_string(previous_linenumber) + ':' + filename + ':' + std::to_string(linenumber);
   }
   std::string get_composed_key() {
     return std::string(previous_filename) + ':' + std::to_string(previous_linenumber) + ':' + filename + ':' + std::to_string(linenumber);
   }
-#endif
 
 } smpi_trace_call_location_t;
 
 
 } smpi_trace_call_location_t;