Boost.Nowide
|
00001 // 00002 // Copyright (c) 2012 Artyom Beilis (Tonkikh) 00003 // 00004 // Distributed under the Boost Software License, Version 1.0. (See 00005 // accompanying file LICENSE_1_0.txt or copy at 00006 // http://www.boost.org/LICENSE_1_0.txt) 00007 // 00008 #ifndef BOOST_NOWIDE_CONFIG_HPP_INCLUDED 00009 #define BOOST_NOWIDE_CONFIG_HPP_INCLUDED 00010 00011 #include <boost/config.hpp> 00012 00013 #ifndef BOOST_SYMBOL_VISIBLE 00014 # define BOOST_SYMBOL_VISIBLE 00015 #endif 00016 00017 #ifdef BOOST_HAS_DECLSPEC 00018 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_NOWIDE_DYN_LINK) 00019 # ifdef BOOST_NOWIDE_SOURCE 00020 # define BOOST_NOWIDE_DECL BOOST_SYMBOL_EXPORT 00021 # else 00022 # define BOOST_NOWIDE_DECL BOOST_SYMBOL_IMPORT 00023 # endif // BOOST_NOWIDE_SOURCE 00024 # endif // DYN_LINK 00025 #endif // BOOST_HAS_DECLSPEC 00026 00027 #ifndef BOOST_NOWIDE_DECL 00028 # define BOOST_NOWIDE_DECL 00029 #endif 00030 00031 // 00032 // Automatically link to the correct build variant where possible. 00033 // 00034 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_NOWIDE_NO_LIB) && !defined(BOOST_NOWIDE_SOURCE) 00035 // 00036 // Set the name of our library, this will get undef'ed by auto_link.hpp 00037 // once it's done with it: 00038 // 00039 #define BOOST_LIB_NAME boost_nowide 00040 // 00041 // If we're importing code from a dll, then tell auto_link.hpp about it: 00042 // 00043 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_NOWIDE_DYN_LINK) 00044 # define BOOST_DYN_LINK 00045 #endif 00046 // 00047 // And include the header that does the work: 00048 // 00049 #include <boost/config/auto_link.hpp> 00050 #endif // auto-linking disabled 00051 00052 00053 #endif // boost/nowide/config.hpp 00054 // vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4