escript  Revision_
escriptcore/src/system_dep.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2020 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
14 * Development from 2019 by School of Earth and Environmental Sciences
15 **
16 *****************************************************************************/
17 
18 
23 /*
24  @(#) system_dep.h
25 */
26 
27 #ifndef escript_system_dep_h
28 #define escript_system_dep_h
29 
30 #define ESCRIPT_DLL_API
31 #define ESCRIPT_INLINE_DLL_API
32 
33 #ifdef _WIN32
34 # undef ESCRIPT_DLL_API
35 # undef ESCRIPT_INLINE_DLL_API
36 # ifdef ESCRIPT_EXPORTS
37 # define ESCRIPT_DLL_API __declspec(dllexport)
38 # define ESCRIPT_INLINE_DLL_API __declspec(dllexport)
39 /* TODO: fix boost numpy
40 # define BOOST_PYTHON_STATIC_LIB
41 # define BOOST_NUMPY_STATIC_LIB */
42 # else
43 # define ESCRIPT_DLL_API __declspec(dllimport)
44 # define ESCRIPT_INLINE_DLL_API
45 # endif
46 
47 #endif
48 
49 #endif
50