source: NonGTP/Boost/boost/program_options/config.hpp @ 857

Revision 857, 1.8 KB checked in by igarcia, 19 years ago (diff)
RevLine 
[857]1//    Copyright (c) 2004 Hartmut Kaiser
2//
3//    Use, modification and distribution is subject to the Boost Software
4//    License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5//    http://www.boost.org/LICENSE_1_0.txt)
6
7#ifndef BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
8#define BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
9
10#include <boost/config.hpp>
11#include <boost/version.hpp>
12
13// Support for autolinking.
14#if BOOST_VERSION >= 103100   // works beginning from Boost V1.31.0
15
16///////////////////////////////////////////////////////////////////////////////
17// enable automatic library variant selection
18#if !defined(BOOST_PROGRAM_OPTIONS_SOURCE) && !defined(BOOST_ALL_NO_LIB) && \
19    !defined(BOOST_PROGRAM_OPTIONS_NO_LIB)
20
21// Set the name of our library, this will get undef'ed by auto_link.hpp
22// once it's done with it:
23#define BOOST_LIB_NAME boost_program_options
24// tell the auto-link code to select a dll when required:
25#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK)
26#  define BOOST_DYN_LINK
27#endif
28
29// And include the header that does the work:
30#include <boost/config/auto_link.hpp>
31
32#endif  // auto-linking disabled
33
34#endif  // BOOST_VERSION
35
36///////////////////////////////////////////////////////////////////////////////
37// Windows DLL suport
38#ifdef BOOST_HAS_DECLSPEC
39#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK)
40// export if this is our own source, otherwise import:
41#ifdef BOOST_PROGRAM_OPTIONS_SOURCE
42# define BOOST_PROGRAM_OPTIONS_DECL __declspec(dllexport)
43#else
44# define BOOST_PROGRAM_OPTIONS_DECL __declspec(dllimport)
45#endif  // BOOST_PROGRAM_OPTIONS_SOURCE
46#endif  // DYN_LINK
47#endif  // BOOST_HAS_DECLSPEC
48
49#ifndef BOOST_PROGRAM_OPTIONS_DECL
50#define BOOST_PROGRAM_OPTIONS_DECL
51#endif
52
53
54#endif // PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
55
Note: See TracBrowser for help on using the repository browser.