]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #ifndef CEPH_ERRNO_H |
2 | #define CEPH_ERRNO_H | |
3 | ||
4 | #include <string> | |
5 | ||
6 | /* Return a given error code as a string */ | |
7 | std::string cpp_strerror(int err); | |
8 | ||
f67539c2 TL |
9 | #ifdef _WIN32 |
10 | // While cpp_strerror handles errors defined in errno.h, this one | |
11 | // accepts standard Windows error codes. | |
12 | std::string win32_strerror(int err); | |
13 | std::string win32_lasterror_str(); | |
14 | #endif /* _WIN32 */ | |
15 | ||
7c673cae | 16 | #endif |