Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
let lmm_system_free(nullptr) be a noop
[simgrid.git] / include / xbt / system_error.hpp
index 02f5089..f580e75 100644 (file)
@@ -8,6 +8,9 @@
 
 #include <system_error>
 
+#ifndef SIMGRID_MC_SYSTEM_ERROR_HPP
+#define SIMGRID_MC_SYSTEM_ERROR_HPP
+
 namespace simgrid {
 namespace xbt {
 
@@ -18,16 +21,18 @@ const std::error_category& errno_category() noexcept
 }
 
 inline
-std::system_error errno_error(int errnum) noexcept
+std::system_error errno_error(int errnum)
 {
   return std::system_error(errnum, errno_category());
 }
 
 inline
-std::system_error errno_error(int errno, const char* what)
+std::system_error errno_error(int errnum, const char* what)
 {
   return std::system_error(errnum, errno_category(), what);
 }
 
 }
 }
+
+#endif