Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:26:14

0001 //  (C) Copyright Samuli-Petrus Korhonen 2017.
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 NMR Solutions, Inc., in
0007 //  producing this work.
0008 
0009 //  Revision History:
0010 //  15 Feb 17  Initial version
0011 
0012 #ifndef CONFIG_NUMPY20170215_H_
0013 # define CONFIG_NUMPY20170215_H_
0014 
0015 # include <boost/config.hpp>
0016 
0017 /*****************************************************************************
0018  *
0019  *  Set up dll import/export options:
0020  *
0021  ****************************************************************************/
0022 
0023 // backwards compatibility:
0024 #ifdef BOOST_NUMPY_STATIC_LIB
0025 #  define BOOST_NUMPY_STATIC_LINK
0026 # elif !defined(BOOST_NUMPY_DYNAMIC_LIB)
0027 #  define BOOST_NUMPY_DYNAMIC_LIB
0028 #endif
0029 
0030 #if defined(BOOST_NUMPY_DYNAMIC_LIB)
0031 #  if defined(BOOST_SYMBOL_EXPORT)
0032 #     if defined(BOOST_NUMPY_SOURCE)
0033 #        define BOOST_NUMPY_DECL           BOOST_SYMBOL_EXPORT
0034 #        define BOOST_NUMPY_DECL_FORWARD   BOOST_SYMBOL_FORWARD_EXPORT
0035 #        define BOOST_NUMPY_DECL_EXCEPTION BOOST_EXCEPTION_EXPORT
0036 #        define BOOST_NUMPY_BUILD_DLL
0037 #     else
0038 #        define BOOST_NUMPY_DECL           BOOST_SYMBOL_IMPORT
0039 #        define BOOST_NUMPY_DECL_FORWARD   BOOST_SYMBOL_FORWARD_IMPORT
0040 #        define BOOST_NUMPY_DECL_EXCEPTION BOOST_EXCEPTION_IMPORT
0041 #     endif
0042 #  endif
0043 
0044 #endif
0045 
0046 #ifndef BOOST_NUMPY_DECL
0047 #  define BOOST_NUMPY_DECL
0048 #endif
0049 
0050 #ifndef BOOST_NUMPY_DECL_FORWARD
0051 #  define BOOST_NUMPY_DECL_FORWARD
0052 #endif
0053 
0054 #ifndef BOOST_NUMPY_DECL_EXCEPTION
0055 #  define BOOST_NUMPY_DECL_EXCEPTION
0056 #endif
0057 
0058 //  enable automatic library variant selection  ------------------------------// 
0059 
0060 #if !defined(BOOST_NUMPY_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_NUMPY_NO_LIB)
0061 //
0062 // Set the name of our library, this will get undef'ed by auto_link.hpp
0063 // once it's done with it:
0064 //
0065 #define _BOOST_PYTHON_CONCAT(N, M, m) N ## M ## m
0066 #define BOOST_PYTHON_CONCAT(N, M, m) _BOOST_PYTHON_CONCAT(N, M, m)
0067 #define BOOST_LIB_NAME BOOST_PYTHON_CONCAT(boost_numpy, PY_MAJOR_VERSION, PY_MINOR_VERSION)
0068 //
0069 // If we're importing code from a dll, then tell auto_link.hpp about it:
0070 //
0071 #ifdef BOOST_NUMPY_DYNAMIC_LIB
0072 #  define BOOST_DYN_LINK
0073 #endif
0074 //
0075 // And include the header that does the work:
0076 //
0077 #include <boost/config/auto_link.hpp>
0078 #endif  // auto-linking disabled
0079 
0080 #undef BOOST_PYTHON_CONCAT
0081 #undef _BOOST_PYTHON_CONCAT
0082 
0083 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
0084 
0085 #endif // CONFIG_NUMPY20170215_H_