blob: 0f78c6641d2e40f069315a85b2fc444f6ac40f5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/******************************************************************************
*
* MantaFlow fluid solver framework
* Copyright 2011 Tobias Pfaff, Nils Thuerey
*
* This program is free software, distributed under the terms of the
* Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Base class for particle systems
*
******************************************************************************/
#ifndef _PYTHONINCLUDE_H
#define _PYTHONINCLUDE_H
#if defined(WIN32) || defined(_WIN32)
// note - we have to include these first!
# include <string>
# include <vector>
# include <iostream>
#endif
// the PYTHON_DEBUG_WITH_RELEASE define enables linking with python debug libraries
#if (defined(_DEBUG) || (DEBUG == 1)) && defined(DEBUG_PYTHON_WITH_RELEASE)
// special handling, disable linking with debug version of python libs
# undef _DEBUG
# define NDEBUG
# include <Python.h>
# if NUMPY == 1
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
# include "numpy/arrayobject.h"
# endif
# define _DEBUG
# undef NDEBUG
#else
# include <Python.h>
# if NUMPY == 1
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
# include "numpy/arrayobject.h"
# endif
#endif
#endif
|