imgtools/imglib/boostlibrary/boost/system/config.hpp
author Ross Qin <ross.qin@nokia.com>
Tue, 30 Nov 2010 13:59:58 +0800
changeset 712 df89378e9223
parent 600 6d08f4a05d93
permissions -rw-r--r--
Fix these errors: Some cases of PREQ1230 fail because of buildrom issue rombuild crashs when create ext-romimage readimage crashes on reading wk42 vasco_ui core image vc2008 compiling issues
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
600
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     1
//  boost/system/config.hpp  -------------------------------------------------//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     2
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     3
//  Copyright Beman Dawes 2003, 2006
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 http://www.boost.org/libs/system for documentation.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     9
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    10
#ifndef BOOST_SYSTEM_CONFIG_HPP                  
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    11
#define BOOST_SYSTEM_CONFIG_HPP
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    12
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    13
#include <boost/config.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    14
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    15
//  BOOST_POSIX_API or BOOST_WINDOWS_API specify which API to use.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    16
//  If not specified, a sensible default will be applied.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    17
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    18
# if defined( BOOST_WINDOWS_API ) && defined( BOOST_POSIX_API )
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    19
#   error both BOOST_WINDOWS_API and BOOST_POSIX_API are defined
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    20
# elif !defined( BOOST_WINDOWS_API ) && !defined( BOOST_POSIX_API )
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    21
#   if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__CYGWIN__)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    22
#     define BOOST_WINDOWS_API
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    23
#   else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    24
#     define BOOST_POSIX_API 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    25
#   endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    26
# endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    27
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    28
//  enable dynamic linking on Windows  ---------------------------------------//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    29
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    30
//#  if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)) && defined(__BORLANDC__) && defined(__WIN32__)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    31
//#    error Dynamic linking Boost.System does not work for Borland; use static linking instead
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    32
//#  endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    33
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    34
#ifdef BOOST_HAS_DECLSPEC // defined in config system
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    35
// we need to import/export our code only if the user has specifically
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    36
// asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    37
// libraries to be dynamically linked, or BOOST_SYSTEM_DYN_LINK
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    38
// if they want just this one to be dynamically liked:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    39
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    40
// export if this is our own source, otherwise import:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    41
#ifdef BOOST_SYSTEM_SOURCE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    42
# define BOOST_SYSTEM_DECL __declspec(dllexport)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    43
#else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    44
# define BOOST_SYSTEM_DECL __declspec(dllimport)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    45
#endif  // BOOST_SYSTEM_SOURCE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    46
#endif  // DYN_LINK
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    47
#endif  // BOOST_HAS_DECLSPEC
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    48
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    49
// if BOOST_SYSTEM_DECL isn't defined yet define it now:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    50
#ifndef BOOST_SYSTEM_DECL
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    51
#define BOOST_SYSTEM_DECL
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    52
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    53
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    54
//  enable automatic library variant selection  ------------------------------// 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    55
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    56
#if !defined(BOOST_SYSTEM_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_SYSTEM_NO_LIB)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    57
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    58
// Set the name of our library, this will get undef'ed by auto_link.hpp
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    59
// once it's done with it:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    60
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    61
#define BOOST_LIB_NAME boost_system
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    62
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    63
// If we're importing code from a dll, then tell auto_link.hpp about it:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    64
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    65
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    66
#  define BOOST_DYN_LINK
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    67
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    68
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    69
// And include the header that does the work:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    70
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    71
#include <boost/config/auto_link.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    72
#endif  // auto-linking disabled
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    73
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    74
#endif // BOOST_SYSTEM_CONFIG_HPP
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    75