#ifndef THP_H #define THP_H #include #include // Back-compatibility macros, Thanks to http://cx-oracle.sourceforge.net/ // define PyInt_* macros for Python 3.x. NB: We must include Python.h first, // otherwise we'll incorrectly conclude PyInt_Check isn't defined! #ifndef PyInt_Check #define PyInt_Check PyLong_Check #define PyInt_FromLong PyLong_FromLong #define PyInt_AsLong PyLong_AsLong #define PyInt_Type PyLong_Type #endif #include #include #include #include #include #include #include // This requires defined Storage and Tensor types #include #include #include #endif