1 
2 // Copyright 2019 Peter Dimov.
3 // Distributed under the Boost Software License, Version 1.0.
4 
5 #include <boost/config.hpp>
6 
7 #if defined(STD_SINGLE_INSTANCE_DYN_LINK)
8 # define EXPORT BOOST_SYMBOL_EXPORT
9 #else
10 # define EXPORT
11 #endif
12 
13 #include <boost/system/error_code.hpp>
14 
15 #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
16 
17 #include <system_error>
18 
19 namespace lib2
20 {
21 
get_system_code()22 EXPORT std::error_code get_system_code()
23 {
24     return boost::system::error_code( 0, boost::system::system_category() );
25 }
26 
get_generic_code()27 EXPORT std::error_code get_generic_code()
28 {
29     return boost::system::error_code( 0, boost::system::generic_category() );
30 }
31 
32 } // namespace lib2
33 
34 #else
35 
lib2_f()36 EXPORT void lib2_f()
37 {
38 }
39 
40 #endif
41