imgtools/imglib/boostlibrary/boost/filesystem/config.hpp
author lorewang
Mon, 22 Nov 2010 10:56:31 +0800
changeset 700 c22eff170fac
parent 600 6d08f4a05d93
permissions -rw-r--r--
update from trunk
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
600
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     1
//  boost/filesystem/config.hpp  ---------------------------------------------//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     2
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     3
//  Copyright Beman Dawes 2003
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     4
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     5
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     6
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     7
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     8
//  See library home page at http://www.boost.org/libs/filesystem
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     9
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    10
//----------------------------------------------------------------------------// 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    11
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    12
#ifndef BOOST_FILESYSTEM_CONFIG_HPP
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    13
#define BOOST_FILESYSTEM_CONFIG_HPP
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    14
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    15
#define BOOST_FILESYSTEM_I18N  // aid users wishing to compile several versions
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    16
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    17
//  ability to change namespace aids path_table.cpp  ------------------------// 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    18
#ifndef BOOST_FILESYSTEM_NAMESPACE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    19
# define BOOST_FILESYSTEM_NAMESPACE filesystem
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    20
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    21
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    22
// This header implements separate compilation features as described in
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    23
// http://www.boost.org/more/separate_compilation.html
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    24
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    25
#include <boost/config.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    26
#include <boost/detail/workaround.hpp> 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    27
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    28
//  determine platform  ------------------------------------------------------//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    29
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    30
//  BOOST_CYGWIN_PATH implies BOOST_WINDOWS_PATH and BOOST_POSIX_API
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    31
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    32
# if defined(BOOST_CYGWIN_PATH)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    33
#   if defined(BOOST_POSIX_PATH)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    34
#     error BOOST_POSIX_PATH is invalid when BOOST_CYGWIN_PATH is defined
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    35
#   endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    36
#   if defined(BOOST_WINDOWS_API)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    37
#     error BOOST_WINDOWS_API is invalid when BOOST_CYGWIN_PATH is defined
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    38
#   endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    39
#   define BOOST_WINDOWS_PATH
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    40
#   define BOOST_POSIX_API
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    41
# endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    42
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    43
//  BOOST_POSIX_API or BOOST_WINDOWS_API specify which API to use
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    44
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    45
# if defined( BOOST_WINDOWS_API ) && defined( BOOST_POSIX_API )
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    46
#   error both BOOST_WINDOWS_API and BOOST_POSIX_API are defined
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    47
# elif !defined( BOOST_WINDOWS_API ) && !defined( BOOST_POSIX_API )
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    48
#   if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__CYGWIN__)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    49
#     define BOOST_WINDOWS_API
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    50
#   else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    51
#     define BOOST_POSIX_API 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    52
#   endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    53
# endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    54
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    55
//  BOOST_WINDOWS_PATH enables Windows path syntax recognition
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    56
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    57
# if !defined(BOOST_POSIX_PATH) && (defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__CYGWIN__))
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    58
#   define BOOST_WINDOWS_PATH
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    59
# endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    60
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    61
//  narrow support only for badly broken compilers or libraries  -------------//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    62
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    63
# if defined(BOOST_NO_STD_WSTRING) || defined(BOOST_NO_SFINAE) || defined(BOOST_NO_STD_LOCALE) || BOOST_WORKAROUND(__BORLANDC__, <0x610)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    64
#   define BOOST_FILESYSTEM_NARROW_ONLY
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    65
# endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    66
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    67
//  enable dynamic linking on Windows  ---------------------------------------//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    68
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    69
#  if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)) &&  BOOST_WORKAROUND(__BORLANDC__, <0x610) && defined(__WIN32__)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    70
#    error Dynamic linking Boost.Filesystem does not work for Borland; use static linking instead
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    71
#  endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    72
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    73
#ifdef BOOST_HAS_DECLSPEC // defined in config system
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    74
// we need to import/export our code only if the user has specifically
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    75
// asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    76
// libraries to be dynamically linked, or BOOST_FILESYSTEM_DYN_LINK
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    77
// if they want just this one to be dynamically liked:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    78
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    79
// export if this is our own source, otherwise import:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    80
#ifdef BOOST_FILESYSTEM_SOURCE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    81
# define BOOST_FILESYSTEM_DECL __declspec(dllexport)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    82
#else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    83
# define BOOST_FILESYSTEM_DECL __declspec(dllimport)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    84
#endif  // BOOST_FILESYSTEM_SOURCE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    85
#endif  // DYN_LINK
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    86
#endif  // BOOST_HAS_DECLSPEC
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    87
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    88
// if BOOST_FILESYSTEM_DECL isn't defined yet define it now:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    89
#ifndef BOOST_FILESYSTEM_DECL
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    90
#define BOOST_FILESYSTEM_DECL
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    91
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    92
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    93
//  enable automatic library variant selection  ------------------------------// 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    94
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    95
#if !defined(BOOST_FILESYSTEM_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_FILESYSTEM_NO_LIB)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    96
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    97
// Set the name of our library, this will get undef'ed by auto_link.hpp
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    98
// once it's done with it:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    99
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   100
#define BOOST_LIB_NAME boost_filesystem
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   101
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   102
// If we're importing code from a dll, then tell auto_link.hpp about it:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   103
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   104
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   105
#  define BOOST_DYN_LINK
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   106
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   107
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   108
// And include the header that does the work:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   109
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   110
#include <boost/config/auto_link.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   111
#endif  // auto-linking disabled
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   112
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   113
#endif // BOOST_FILESYSTEM_CONFIG_HPP