Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:37

0001 //  (C) Copyright David Abrahams 2000.
0002 // Distributed under the Boost Software License, Version 1.0. (See
0003 // accompanying file LICENSE_1_0.txt or copy at
0004 // http://www.boost.org/LICENSE_1_0.txt)
0005 //
0006 //  The author gratefully acknowleges the support of Dragon Systems, Inc., in
0007 //  producing this work.
0008 
0009 //  Revision History:
0010 //  04 Mar 01  Some fixes so it will compile with Intel C++ (Dave Abrahams)
0011 
0012 #ifndef CONFIG_DWA052200_H_
0013 # define CONFIG_DWA052200_H_
0014 
0015 # include <boost/config.hpp>
0016 # include <boost/detail/workaround.hpp>
0017 
0018 # ifdef BOOST_NO_OPERATORS_IN_NAMESPACE
0019    // A gcc bug forces some symbols into the global namespace
0020 #  define BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE
0021 #  define BOOST_PYTHON_END_CONVERSION_NAMESPACE
0022 #  define BOOST_PYTHON_CONVERSION
0023 #  define BOOST_PYTHON_IMPORT_CONVERSION(x) using ::x
0024 # else
0025 #  define BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE namespace boost { namespace python {
0026 #  define BOOST_PYTHON_END_CONVERSION_NAMESPACE }} // namespace boost::python
0027 #  define BOOST_PYTHON_CONVERSION boost::python
0028 #  define BOOST_PYTHON_IMPORT_CONVERSION(x) void never_defined() // so we can follow the macro with a ';'
0029 # endif
0030 
0031 # if defined(BOOST_MSVC)
0032 
0033 #  pragma warning (disable : 4786) // disable truncated debug symbols
0034 #  pragma warning (disable : 4251) // disable exported dll function
0035 #  pragma warning (disable : 4800) //'int' : forcing value to bool 'true' or 'false'
0036 #  pragma warning (disable : 4275) // non dll-interface class
0037 
0038 # elif defined(__ICL) && __ICL < 600 // Intel C++ 5
0039 
0040 #  pragma warning(disable: 985) // identifier was truncated in debug information
0041 
0042 # endif
0043 
0044 // The STLport puts all of the standard 'C' library names in std (as far as the
0045 // user is concerned), but without it you need a fix if you're using MSVC or
0046 // Intel C++
0047 # if defined(BOOST_NO_STDC_NAMESPACE)
0048 #  define BOOST_CSTD_
0049 # else
0050 #  define BOOST_CSTD_ std
0051 # endif
0052 
0053 /*****************************************************************************
0054  *
0055  *  Set up dll import/export options:
0056  *
0057  ****************************************************************************/
0058 
0059 // backwards compatibility:
0060 #ifdef BOOST_PYTHON_STATIC_LIB
0061 #  define BOOST_PYTHON_STATIC_LINK
0062 # elif !defined(BOOST_PYTHON_DYNAMIC_LIB)
0063 #  define BOOST_PYTHON_DYNAMIC_LIB
0064 #endif
0065 
0066 #if defined(BOOST_PYTHON_DYNAMIC_LIB)
0067 #  if defined(BOOST_SYMBOL_EXPORT)
0068 #     if defined(BOOST_PYTHON_SOURCE)
0069 #        define BOOST_PYTHON_DECL           BOOST_SYMBOL_EXPORT
0070 #        define BOOST_PYTHON_DECL_FORWARD   BOOST_SYMBOL_FORWARD_EXPORT
0071 #        define BOOST_PYTHON_DECL_EXCEPTION BOOST_EXCEPTION_EXPORT
0072 #        define BOOST_PYTHON_BUILD_DLL
0073 #     else
0074 #        define BOOST_PYTHON_DECL           BOOST_SYMBOL_IMPORT
0075 #        define BOOST_PYTHON_DECL_FORWARD   BOOST_SYMBOL_FORWARD_IMPORT
0076 #        define BOOST_PYTHON_DECL_EXCEPTION BOOST_EXCEPTION_IMPORT
0077 #     endif
0078 #  endif
0079 #endif
0080 
0081 #ifndef BOOST_PYTHON_DECL
0082 #  define BOOST_PYTHON_DECL
0083 #endif
0084 
0085 #ifndef BOOST_PYTHON_DECL_FORWARD
0086 #  define BOOST_PYTHON_DECL_FORWARD
0087 #endif
0088 
0089 #ifndef BOOST_PYTHON_DECL_EXCEPTION
0090 #  define BOOST_PYTHON_DECL_EXCEPTION
0091 #endif
0092 
0093 #if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042))
0094 // Replace broken Tru64/cxx offsetof macro
0095 # define BOOST_PYTHON_OFFSETOF(s_name, s_member) \
0096         ((size_t)__INTADDR__(&(((s_name *)0)->s_member)))
0097 #else
0098 # define BOOST_PYTHON_OFFSETOF offsetof
0099 #endif
0100 
0101 //  enable automatic library variant selection  ------------------------------// 
0102 
0103 #if !defined(BOOST_PYTHON_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_PYTHON_NO_LIB)
0104 //
0105 // Set the name of our library, this will get undef'ed by auto_link.hpp
0106 // once it's done with it:
0107 //
0108 #define _BOOST_PYTHON_CONCAT(N, M, m) N ## M ## m
0109 #define BOOST_PYTHON_CONCAT(N, M, m) _BOOST_PYTHON_CONCAT(N, M, m)
0110 #define BOOST_LIB_NAME BOOST_PYTHON_CONCAT(boost_python, PY_MAJOR_VERSION, PY_MINOR_VERSION)
0111 //
0112 // If we're importing code from a dll, then tell auto_link.hpp about it:
0113 //
0114 #ifdef BOOST_PYTHON_DYNAMIC_LIB
0115 #  define BOOST_DYN_LINK
0116 #endif
0117 //
0118 // And include the header that does the work:
0119 //
0120 #include <boost/config/auto_link.hpp>
0121 #endif  // auto-linking disabled
0122 
0123 #undef BOOST_PYTHON_CONCAT
0124 #undef _BOOST_PYTHON_CONCAT
0125 
0126 #ifndef BOOST_PYTHON_NO_PY_SIGNATURES
0127 #define BOOST_PYTHON_SUPPORTS_PY_SIGNATURES // enables smooth transition
0128 #endif
0129 
0130 #if !defined(BOOST_ATTRIBUTE_UNUSED) && defined(__GNUC__) && (__GNUC__ >= 4)
0131 #  define BOOST_ATTRIBUTE_UNUSED __attribute__((unused))
0132 #endif
0133 
0134 #endif // CONFIG_DWA052200_H_