diff --git a/Xdmf.i b/Xdmf.i index 88f228d5559086998fc22b497b58334e571f8373..badd577c3474b243a14027534f1392a98c5e03d0 100644 --- a/Xdmf.i +++ b/Xdmf.i @@ -8,6 +8,7 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i %module Xdmf %{ + #define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj)) // MPI Includes #include @@ -71,6 +72,7 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i #else %module Xdmf %{ + #define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj)) // XdmfCore Includes #include