Commit e3018ed0 authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri

Fixed Python wrapping on Linux for SWIG version >= 2.0

Added missing definition for macro SWIGPY_SLICE_ARG
parent dda62b58
......@@ -3,6 +3,15 @@ XdmfPython.cpp:
swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
*/
%{
#include <cstddef>
#include <iostream>
#if PY_VERSION_HEX >= 0x03020000
#define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
#else
#define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
#endif
%}
#ifdef XDMF_BUILD_DSM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment