1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef BOOST_CYGWIN_ERROR_HPP
- #define BOOST_CYGWIN_ERROR_HPP
- # ifdef __CYGWIN__
- #include <boost/system/error_code.hpp>
- namespace boost
- {
- namespace system
- {
-
-
-
-
-
-
-
- namespace cygwin_error
- {
- enum cygwin_errno
- {
- no_net = ENONET,
- no_package = ENOPKG,
- no_share = ENOSHARE
- };
- }
- template<> struct is_error_code_enum<cygwin_error::cygwin_errno>
- { static const bool value = true; };
- namespace cygwin_error
- {
- inline error_code make_error_code( cygwin_errno e )
- { return error_code( e, get_system_category() ); }
- }
- }
- }
- #endif
- #endif
|