X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f9eb7fc2dcaeb4e7bdf6b0aaf76fe713e370746..0c1113a3d64447cac78d831318fd050b8d2ae9a4:/include/xbt/system_error.hpp diff --git a/include/xbt/system_error.hpp b/include/xbt/system_error.hpp index 02f508990e..f580e750ce 100644 --- a/include/xbt/system_error.hpp +++ b/include/xbt/system_error.hpp @@ -8,6 +8,9 @@ #include +#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