Boost.Nowide
config.hpp
1 //
2 // Copyright (c) 2012 Artyom Beilis (Tonkikh)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 #ifndef BOOST_NOWIDE_CONFIG_HPP_INCLUDED
9 #define BOOST_NOWIDE_CONFIG_HPP_INCLUDED
10 
11 #include <boost/config.hpp>
12 
13 #ifndef BOOST_SYMBOL_VISIBLE
14 # define BOOST_SYMBOL_VISIBLE
15 #endif
16 
17 #ifdef BOOST_HAS_DECLSPEC
18 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_NOWIDE_DYN_LINK)
19 # ifdef BOOST_NOWIDE_SOURCE
20 # define BOOST_NOWIDE_DECL BOOST_SYMBOL_EXPORT
21 # else
22 # define BOOST_NOWIDE_DECL BOOST_SYMBOL_IMPORT
23 # endif // BOOST_NOWIDE_SOURCE
24 # endif // DYN_LINK
25 #endif // BOOST_HAS_DECLSPEC
26 
27 #ifndef BOOST_NOWIDE_DECL
28 # define BOOST_NOWIDE_DECL
29 #endif
30 
31 //
32 // Automatically link to the correct build variant where possible.
33 //
34 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_NOWIDE_NO_LIB) && !defined(BOOST_NOWIDE_SOURCE)
35 //
36 // Set the name of our library, this will get undef'ed by auto_link.hpp
37 // once it's done with it:
38 //
39 #define BOOST_LIB_NAME boost_nowide
40 //
41 // If we're importing code from a dll, then tell auto_link.hpp about it:
42 //
43 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_NOWIDE_DYN_LINK)
44 # define BOOST_DYN_LINK
45 #endif
46 //
47 // And include the header that does the work:
48 //
49 #include <boost/config/auto_link.hpp>
50 #endif // auto-linking disabled
51 
52 
53 #endif // boost/nowide/config.hpp
54 // vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4