Ice Sheet System Model  4.18
Code documentation
pythonincludes.h
Go to the documentation of this file.
1 
2 #ifndef _PYTHON_INCLUDES_H_
3 #define _PYTHON_INCLUDES_H_
4 
5 #ifdef HAVE_CONFIG_H
6 #include <config.h>
7 #else
8 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
9 #endif
10 
11 #ifdef _HAVE_PYTHON_
12 
13 #if _PYTHON_MAJOR_ >= 2
14 #undef NPY_NO_DEPRECATED_API
15 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
16 #else
17 #define NPY_NO_DEPRECATED_API
18 #endif
19 
20 #include <Python.h>
21 #include <arrayobject.h>
22 
23 #endif
24 #endif /*_PYTHON_INCLUDES_H_*/