os/ossrv/ossrv_pub/boost_apis/boost/python/detail/config.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/python/detail/config.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,137 @@
     1.4 +//  (C) Copyright David Abrahams 2000.
     1.5 +// Distributed under the Boost Software License, Version 1.0. (See
     1.6 +// accompanying file LICENSE_1_0.txt or copy at
     1.7 +// http://www.boost.org/LICENSE_1_0.txt)
     1.8 +//
     1.9 +//  The author gratefully acknowleges the support of Dragon Systems, Inc., in
    1.10 +//  producing this work.
    1.11 +
    1.12 +//  Revision History:
    1.13 +//  04 Mar 01  Some fixes so it will compile with Intel C++ (Dave Abrahams)
    1.14 +
    1.15 +#ifndef CONFIG_DWA052200_H_
    1.16 +# define CONFIG_DWA052200_H_
    1.17 +
    1.18 +# include <boost/config.hpp>
    1.19 +# include <boost/detail/workaround.hpp>
    1.20 +
    1.21 +# ifdef BOOST_NO_OPERATORS_IN_NAMESPACE
    1.22 +   // A gcc bug forces some symbols into the global namespace
    1.23 +#  define BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE
    1.24 +#  define BOOST_PYTHON_END_CONVERSION_NAMESPACE
    1.25 +#  define BOOST_PYTHON_CONVERSION
    1.26 +#  define BOOST_PYTHON_IMPORT_CONVERSION(x) using ::x
    1.27 +# else
    1.28 +#  define BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE namespace boost { namespace python {
    1.29 +#  define BOOST_PYTHON_END_CONVERSION_NAMESPACE }} // namespace boost::python
    1.30 +#  define BOOST_PYTHON_CONVERSION boost::python
    1.31 +#  define BOOST_PYTHON_IMPORT_CONVERSION(x) void never_defined() // so we can follow the macro with a ';'
    1.32 +# endif
    1.33 +
    1.34 +# if defined(BOOST_MSVC)
    1.35 +#  if _MSC_VER < 1300
    1.36 +#   define BOOST_MSVC6_OR_EARLIER 1
    1.37 +#  endif
    1.38 +
    1.39 +#  pragma warning (disable : 4786) // disable truncated debug symbols
    1.40 +#  pragma warning (disable : 4251) // disable exported dll function
    1.41 +#  pragma warning (disable : 4800) //'int' : forcing value to bool 'true' or 'false'
    1.42 +#  pragma warning (disable : 4275) // non dll-interface class
    1.43 +
    1.44 +# elif defined(__ICL) && __ICL < 600 // Intel C++ 5
    1.45 +
    1.46 +#  pragma warning(disable: 985) // identifier was truncated in debug information
    1.47 +
    1.48 +# endif
    1.49 +
    1.50 +// The STLport puts all of the standard 'C' library names in std (as far as the
    1.51 +// user is concerned), but without it you need a fix if you're using MSVC or
    1.52 +// Intel C++
    1.53 +# if defined(BOOST_NO_STDC_NAMESPACE)
    1.54 +#  define BOOST_CSTD_
    1.55 +# else
    1.56 +#  define BOOST_CSTD_ std
    1.57 +# endif
    1.58 +
    1.59 +/*****************************************************************************
    1.60 + *
    1.61 + *  Set up dll import/export options:
    1.62 + *
    1.63 + ****************************************************************************/
    1.64 +
    1.65 +// backwards compatibility:
    1.66 +#ifdef BOOST_PYTHON_STATIC_LIB
    1.67 +#  define BOOST_PYTHON_STATIC_LINK
    1.68 +# elif !defined(BOOST_PYTHON_DYNAMIC_LIB)
    1.69 +#  define BOOST_PYTHON_DYNAMIC_LIB
    1.70 +#endif
    1.71 +
    1.72 +#if defined(BOOST_PYTHON_DYNAMIC_LIB)
    1.73 +
    1.74 +#  if !defined(_WIN32) && !defined(__CYGWIN__)                                  \
    1.75 +    && !defined(BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY)                         \
    1.76 +    && BOOST_WORKAROUND(__GNUC__, >= 3) && (__GNUC_MINOR__ >=5 || __GNUC__ > 3)
    1.77 +#    define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 1
    1.78 +#  endif 
    1.79 +
    1.80 +#  if BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY
    1.81 +#     if defined(BOOST_PYTHON_SOURCE)
    1.82 +#        define BOOST_PYTHON_DECL __attribute__ ((visibility("default")))
    1.83 +#        define BOOST_PYTHON_BUILD_DLL
    1.84 +#     else
    1.85 +#        define BOOST_PYTHON_DECL
    1.86 +#     endif
    1.87 +#     define BOOST_PYTHON_DECL_FORWARD
    1.88 +#     define BOOST_PYTHON_DECL_EXCEPTION __attribute__ ((visibility("default")))
    1.89 +#  elif (defined(_WIN32) || defined(__CYGWIN__))
    1.90 +#     if defined(BOOST_PYTHON_SOURCE)
    1.91 +#        define BOOST_PYTHON_DECL __declspec(dllexport)
    1.92 +#        define BOOST_PYTHON_BUILD_DLL
    1.93 +#     else
    1.94 +#        define BOOST_PYTHON_DECL __declspec(dllimport)
    1.95 +#     endif
    1.96 +#  endif
    1.97 +
    1.98 +#endif
    1.99 +
   1.100 +#ifndef BOOST_PYTHON_DECL
   1.101 +#  define BOOST_PYTHON_DECL
   1.102 +#endif
   1.103 +
   1.104 +#ifndef BOOST_PYTHON_DECL_FORWARD
   1.105 +#  define BOOST_PYTHON_DECL_FORWARD BOOST_PYTHON_DECL
   1.106 +#endif
   1.107 +
   1.108 +#ifndef BOOST_PYTHON_DECL_EXCEPTION
   1.109 +#  define BOOST_PYTHON_DECL_EXCEPTION BOOST_PYTHON_DECL
   1.110 +#endif
   1.111 +
   1.112 +#if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042))
   1.113 +// Replace broken Tru64/cxx offsetof macro
   1.114 +# define BOOST_PYTHON_OFFSETOF(s_name, s_member) \
   1.115 +        ((size_t)__INTADDR__(&(((s_name *)0)->s_member)))
   1.116 +#else
   1.117 +# define BOOST_PYTHON_OFFSETOF offsetof
   1.118 +#endif
   1.119 +
   1.120 +//  enable automatic library variant selection  ------------------------------// 
   1.121 +
   1.122 +#if !defined(BOOST_PYTHON_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_PYTHON_NO_LIB)
   1.123 +//
   1.124 +// Set the name of our library, this will get undef'ed by auto_link.hpp
   1.125 +// once it's done with it:
   1.126 +//
   1.127 +#define BOOST_LIB_NAME boost_python
   1.128 +//
   1.129 +// If we're importing code from a dll, then tell auto_link.hpp about it:
   1.130 +//
   1.131 +#ifdef BOOST_PYTHON_DYNAMIC_LIB
   1.132 +#  define BOOST_DYN_LINK
   1.133 +#endif
   1.134 +//
   1.135 +// And include the header that does the work:
   1.136 +//
   1.137 +#include <boost/config/auto_link.hpp>
   1.138 +#endif  // auto-linking disabled
   1.139 +
   1.140 +#endif // CONFIG_DWA052200_H_