os/ossrv/ossrv_pub/boost_apis/boost/archive/detail/decl.hpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
#ifndef BOOST_ARCHIVE_DETAIL_DECL_HPP
sl@0
     2
#define BOOST_ARCHIVE_DETAIL_DECL_HPP 
sl@0
     3
sl@0
     4
// MS compatible compilers support #pragma once
sl@0
     5
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
sl@0
     6
# pragma once
sl@0
     7
#endif 
sl@0
     8
sl@0
     9
/////////1/////////2///////// 3/////////4/////////5/////////6/////////7/////////8
sl@0
    10
//  decl.hpp
sl@0
    11
//
sl@0
    12
//  © Copyright Robert Ramey 2004
sl@0
    13
//  Use, modification, and distribution is subject to the Boost Software
sl@0
    14
//  License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
sl@0
    15
//  http://www.boost.org/LICENSE_1_0.txt)
sl@0
    16
sl@0
    17
//  See library home page at http://www.boost.org/libs/serialization
sl@0
    18
sl@0
    19
//----------------------------------------------------------------------------// 
sl@0
    20
sl@0
    21
// This header implements separate compilation features as described in
sl@0
    22
// http://www.boost.org/more/separate_compilation.html
sl@0
    23
sl@0
    24
#include <boost/config.hpp>
sl@0
    25
#include <boost/preprocessor/facilities/empty.hpp>
sl@0
    26
sl@0
    27
#if defined(BOOST_HAS_DECLSPEC)
sl@0
    28
    #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK))
sl@0
    29
        #if defined(BOOST_ARCHIVE_SOURCE)
sl@0
    30
            #if defined(__BORLANDC__)
sl@0
    31
            #define BOOST_ARCHIVE_DECL(T) T __export
sl@0
    32
            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T)  T __export
sl@0
    33
            #else
sl@0
    34
            #define BOOST_ARCHIVE_DECL(T) __declspec(dllexport) T
sl@0
    35
            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T)  __declspec(dllexport) T
sl@0
    36
            #endif
sl@0
    37
        #else
sl@0
    38
            #if defined(__BORLANDC__)
sl@0
    39
            #define BOOST_ARCHIVE_DECL(T) T __import
sl@0
    40
            #else
sl@0
    41
            #define BOOST_ARCHIVE_DECL(T) __declspec(dllimport) T
sl@0
    42
            #endif
sl@0
    43
        #endif
sl@0
    44
        #if defined(BOOST_WARCHIVE_SOURCE)
sl@0
    45
            #if defined(__BORLANDC__)
sl@0
    46
            #define BOOST_WARCHIVE_DECL(T) T __export
sl@0
    47
            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __export
sl@0
    48
            #else
sl@0
    49
            #define BOOST_WARCHIVE_DECL(T) __declspec(dllexport) T
sl@0
    50
            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllexport) T
sl@0
    51
            #endif
sl@0
    52
        #else
sl@0
    53
            #if defined(__BORLANDC__)
sl@0
    54
            #define BOOST_WARCHIVE_DECL(T) T __import
sl@0
    55
            #else
sl@0
    56
            #define BOOST_WARCHIVE_DECL(T) __declspec(dllimport) T
sl@0
    57
            #endif
sl@0
    58
        #endif
sl@0
    59
        #if !defined(BOOST_WARCHIVE_SOURCE) && !defined(BOOST_ARCHIVE_SOURCE)
sl@0
    60
            #if defined(__BORLANDC__)
sl@0
    61
            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __import
sl@0
    62
            #else
sl@0
    63
            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllimport) T
sl@0
    64
            #endif
sl@0
    65
        #endif
sl@0
    66
    #endif
sl@0
    67
#endif // BOOST_HAS_DECLSPEC
sl@0
    68
sl@0
    69
#if ! defined(BOOST_ARCHIVE_DECL)
sl@0
    70
    #define BOOST_ARCHIVE_DECL(T) T
sl@0
    71
#endif
sl@0
    72
#if ! defined(BOOST_WARCHIVE_DECL)
sl@0
    73
    #define BOOST_WARCHIVE_DECL(T) T
sl@0
    74
#endif
sl@0
    75
#if ! defined(BOOST_ARCHIVE_OR_WARCHIVE_DECL)
sl@0
    76
    #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T
sl@0
    77
#endif
sl@0
    78
sl@0
    79
#endif // BOOST_ARCHIVE_DETAIL_DECL_HPP