From c320a3d34656c7b1aedb6d498ab40bd76e153f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jitka=20Plesn=C3=ADkov=C3=A1?= Date: Tue, 5 Mar 2019 08:59:55 +0100 Subject: [PATCH] Update libpreludecpp-python.i to build with SWIG 4 Update the file to be able to build with SWIG 4. For more details look here https://sourceforge.net/p/swig/mailman/message/36603516/ The changes also work for SWIG 3.0.12 --- bindings/python/libpreludecpp-python.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/libpreludecpp-python.i b/bindings/python/libpreludecpp-python.i index c526b879..1c880214 100644 --- a/bindings/python/libpreludecpp-python.i +++ b/bindings/python/libpreludecpp-python.i @@ -40,7 +40,7 @@ %feature("python:slot", "tp_repr", functype="reprfunc") *::toString; %feature("python:slot", "mp_subscript", functype="binaryfunc") *::get; %feature("python:slot", "mp_ass_subscript", functype="objobjargproc") *::set; -%feature("python:slot", "tp_hash") Prelude::IDMEFValue::getType; +%feature("python:slot", "tp_hash", functype="hashfunc") Prelude::IDMEFValue::getType; /* * IDMEFClass