sl@0: // (C) Copyright David Abrahams 2000. sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: // sl@0: // The author gratefully acknowleges the support of Dragon Systems, Inc., in sl@0: // producing this work. sl@0: sl@0: // Revision History: sl@0: // 04 Mar 01 Some fixes so it will compile with Intel C++ (Dave Abrahams) sl@0: sl@0: #ifndef CONFIG_DWA052200_H_ sl@0: # define CONFIG_DWA052200_H_ sl@0: sl@0: # include sl@0: # include sl@0: sl@0: # ifdef BOOST_NO_OPERATORS_IN_NAMESPACE sl@0: // A gcc bug forces some symbols into the global namespace sl@0: # define BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE sl@0: # define BOOST_PYTHON_END_CONVERSION_NAMESPACE sl@0: # define BOOST_PYTHON_CONVERSION sl@0: # define BOOST_PYTHON_IMPORT_CONVERSION(x) using ::x sl@0: # else sl@0: # define BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE namespace boost { namespace python { sl@0: # define BOOST_PYTHON_END_CONVERSION_NAMESPACE }} // namespace boost::python sl@0: # define BOOST_PYTHON_CONVERSION boost::python sl@0: # define BOOST_PYTHON_IMPORT_CONVERSION(x) void never_defined() // so we can follow the macro with a ';' sl@0: # endif sl@0: sl@0: # if defined(BOOST_MSVC) sl@0: # if _MSC_VER < 1300 sl@0: # define BOOST_MSVC6_OR_EARLIER 1 sl@0: # endif sl@0: sl@0: # pragma warning (disable : 4786) // disable truncated debug symbols sl@0: # pragma warning (disable : 4251) // disable exported dll function sl@0: # pragma warning (disable : 4800) //'int' : forcing value to bool 'true' or 'false' sl@0: # pragma warning (disable : 4275) // non dll-interface class sl@0: sl@0: # elif defined(__ICL) && __ICL < 600 // Intel C++ 5 sl@0: sl@0: # pragma warning(disable: 985) // identifier was truncated in debug information sl@0: sl@0: # endif sl@0: sl@0: // The STLport puts all of the standard 'C' library names in std (as far as the sl@0: // user is concerned), but without it you need a fix if you're using MSVC or sl@0: // Intel C++ sl@0: # if defined(BOOST_NO_STDC_NAMESPACE) sl@0: # define BOOST_CSTD_ sl@0: # else sl@0: # define BOOST_CSTD_ std sl@0: # endif sl@0: sl@0: /***************************************************************************** sl@0: * sl@0: * Set up dll import/export options: sl@0: * sl@0: ****************************************************************************/ sl@0: sl@0: // backwards compatibility: sl@0: #ifdef BOOST_PYTHON_STATIC_LIB sl@0: # define BOOST_PYTHON_STATIC_LINK sl@0: # elif !defined(BOOST_PYTHON_DYNAMIC_LIB) sl@0: # define BOOST_PYTHON_DYNAMIC_LIB sl@0: #endif sl@0: sl@0: #if defined(BOOST_PYTHON_DYNAMIC_LIB) sl@0: sl@0: # if !defined(_WIN32) && !defined(__CYGWIN__) \ sl@0: && !defined(BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY) \ sl@0: && BOOST_WORKAROUND(__GNUC__, >= 3) && (__GNUC_MINOR__ >=5 || __GNUC__ > 3) sl@0: # define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 1 sl@0: # endif sl@0: sl@0: # if BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY sl@0: # if defined(BOOST_PYTHON_SOURCE) sl@0: # define BOOST_PYTHON_DECL __attribute__ ((visibility("default"))) sl@0: # define BOOST_PYTHON_BUILD_DLL sl@0: # else sl@0: # define BOOST_PYTHON_DECL sl@0: # endif sl@0: # define BOOST_PYTHON_DECL_FORWARD sl@0: # define BOOST_PYTHON_DECL_EXCEPTION __attribute__ ((visibility("default"))) sl@0: # elif (defined(_WIN32) || defined(__CYGWIN__)) sl@0: # if defined(BOOST_PYTHON_SOURCE) sl@0: # define BOOST_PYTHON_DECL __declspec(dllexport) sl@0: # define BOOST_PYTHON_BUILD_DLL sl@0: # else sl@0: # define BOOST_PYTHON_DECL __declspec(dllimport) sl@0: # endif sl@0: # endif sl@0: sl@0: #endif sl@0: sl@0: #ifndef BOOST_PYTHON_DECL sl@0: # define BOOST_PYTHON_DECL sl@0: #endif sl@0: sl@0: #ifndef BOOST_PYTHON_DECL_FORWARD sl@0: # define BOOST_PYTHON_DECL_FORWARD BOOST_PYTHON_DECL sl@0: #endif sl@0: sl@0: #ifndef BOOST_PYTHON_DECL_EXCEPTION sl@0: # define BOOST_PYTHON_DECL_EXCEPTION BOOST_PYTHON_DECL sl@0: #endif sl@0: sl@0: #if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042)) sl@0: // Replace broken Tru64/cxx offsetof macro sl@0: # define BOOST_PYTHON_OFFSETOF(s_name, s_member) \ sl@0: ((size_t)__INTADDR__(&(((s_name *)0)->s_member))) sl@0: #else sl@0: # define BOOST_PYTHON_OFFSETOF offsetof sl@0: #endif sl@0: sl@0: // enable automatic library variant selection ------------------------------// sl@0: sl@0: #if !defined(BOOST_PYTHON_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_PYTHON_NO_LIB) sl@0: // sl@0: // Set the name of our library, this will get undef'ed by auto_link.hpp sl@0: // once it's done with it: sl@0: // sl@0: #define BOOST_LIB_NAME boost_python sl@0: // sl@0: // If we're importing code from a dll, then tell auto_link.hpp about it: sl@0: // sl@0: #ifdef BOOST_PYTHON_DYNAMIC_LIB sl@0: # define BOOST_DYN_LINK sl@0: #endif sl@0: // sl@0: // And include the header that does the work: sl@0: // sl@0: #include sl@0: #endif // auto-linking disabled sl@0: sl@0: #endif // CONFIG_DWA052200_H_