Skip to content

Commit

Permalink
Fix for missing macro in some versions of SWIG.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogenvik committed Nov 20, 2012
1 parent 35479d5 commit bf5f00d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/WFUT.i
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
#include <libwfut/WFUT.h>
#include <sigc++/bind.h>
#include <sigc++/object_slot.h>

//Fix for missing SWIGPY_SLICE_ARG with some versions of swig.
#if PY_VERSION_HEX >= 0x03020000
# define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
#else
# define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
#endif

%}

%import "std_string.i"
Expand Down

0 comments on commit bf5f00d

Please sign in to comment.