Error.h (encfs-1.9.4) | : | Error.h (encfs-1.9.5) | ||
---|---|---|---|---|
#ifndef _Error_incl_ | #ifndef _Error_incl_ | |||
#define _Error_incl_ | #define _Error_incl_ | |||
// Provides compatibility with RLog's rAssert, which throws an Error exception. | // Provides compatibility with RLog's rAssert, which throws an Error exception. | |||
#include "easylogging++.h" | #include "easylogging++.h" | |||
#include <stdexcept> | #include <stdexcept> | |||
// Cygwin / WinFsp does not support EBADMSG yet | ||||
// https://github.com/billziss-gh/winfsp/issues/156 | ||||
#ifdef __CYGWIN__ | ||||
#undef EBADMSG | ||||
#define EBADMSG EINVAL | ||||
#endif | ||||
namespace encfs { | namespace encfs { | |||
class Error : public std::runtime_error { | class Error : public std::runtime_error { | |||
public: | public: | |||
Error(const char *msg); | Error(const char *msg); | |||
}; | }; | |||
#define STR(X) #X | #define STR(X) #X | |||
#define rAssert(cond) \ | #define rAssert(cond) \ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added |