fixing stuff
[dyninst.git] / dynutil / h / dyn_detail / boost / type_traits / config.hpp
1
2 //  (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3 //  Use, modification and distribution are subject to the Boost Software License,
4 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 //  http://www.boost.org/LICENSE_1_0.txt).
6 //
7 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
8
9 #ifndef DYN_DETAIL_BOOST_TT_CONFIG_HPP_INCLUDED
10 #define DYN_DETAIL_BOOST_TT_CONFIG_HPP_INCLUDED
11
12 #ifndef DYN_DETAIL_BOOST_CONFIG_HPP
13 #include <dyn_detail/boost/config.hpp>
14 #endif
15
16 #include <dyn_detail/boost/detail/workaround.hpp>
17
18 //
19 // whenever we have a conversion function with elipses
20 // it needs to be declared __cdecl to suppress compiler
21 // warnings from MS and Borland compilers (this *must*
22 // appear before we include is_same.hpp below):
23 #if defined(DYN_DETAIL_BOOST_MSVC) || (defined(__BORLANDC__) && !defined(DYN_DETAIL_BOOST_DISABLE_WIN32))
24 #   define DYN_DETAIL_BOOST_TT_DECL __cdecl
25 #else
26 #   define DYN_DETAIL_BOOST_TT_DECL /**/
27 #endif
28
29 # if (DYN_DETAIL_BOOST_WORKAROUND(__MWERKS__, < 0x3000)                         \
30     || DYN_DETAIL_BOOST_WORKAROUND(DYN_DETAIL_BOOST_MSVC, <= 1301)                        \
31     || !defined(__EDG_VERSION__) && DYN_DETAIL_BOOST_WORKAROUND(__GNUC__, < 3) \
32     || DYN_DETAIL_BOOST_WORKAROUND(__IBMCPP__, < 600 )                         \
33     || DYN_DETAIL_BOOST_WORKAROUND(__BORLANDC__, < 0x5A0)                      \
34     || defined(__ghs)                                               \
35     || DYN_DETAIL_BOOST_WORKAROUND(__HP_aCC, < 60700)           \
36     || DYN_DETAIL_BOOST_WORKAROUND(MPW_CPLUS, DYN_DETAIL_BOOST_TESTED_AT(0x890))          \
37     || DYN_DETAIL_BOOST_WORKAROUND(__SUNPRO_CC, DYN_DETAIL_BOOST_TESTED_AT(0x580)))       \
38     && defined(DYN_DETAIL_BOOST_NO_IS_ABSTRACT)
39
40 #   define DYN_DETAIL_BOOST_TT_NO_CONFORMING_IS_CLASS_IMPLEMENTATION 1
41
42 #endif
43
44 #ifndef DYN_DETAIL_BOOST_TT_NO_CONFORMING_IS_CLASS_IMPLEMENTATION
45 # define DYN_DETAIL_BOOST_TT_HAS_CONFORMING_IS_CLASS_IMPLEMENTATION 1
46 #endif
47
48 //
49 // Define DYN_DETAIL_BOOST_TT_NO_ELLIPSIS_IN_FUNC_TESTING 
50 // when we can't test for function types with elipsis:
51 //
52 #if DYN_DETAIL_BOOST_WORKAROUND(__GNUC__, < 3)
53 #  define DYN_DETAIL_BOOST_TT_NO_ELLIPSIS_IN_FUNC_TESTING
54 #endif
55
56 //
57 // define DYN_DETAIL_BOOST_TT_TEST_MS_FUNC_SIGS
58 // when we want to test __stdcall etc function types with is_function etc
59 // (Note, does not work with Borland, even though it does support __stdcall etc):
60 //
61 #if defined(_MSC_EXTENSIONS) && !defined(__BORLANDC__)
62 #  define DYN_DETAIL_BOOST_TT_TEST_MS_FUNC_SIGS
63 #endif
64
65 //
66 // define DYN_DETAIL_BOOST_TT_NO_CV_FUNC_TEST
67 // if tests for cv-qualified member functions don't 
68 // work in is_member_function_pointer
69 //
70 #if DYN_DETAIL_BOOST_WORKAROUND(__MWERKS__, < 0x3000) || DYN_DETAIL_BOOST_WORKAROUND(__IBMCPP__, <= 600)
71 #  define DYN_DETAIL_BOOST_TT_NO_CV_FUNC_TEST
72 #endif
73
74 #endif // DYN_DETAIL_BOOST_TT_CONFIG_HPP_INCLUDED
75
76