mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
60e0b076b4
ok jtt@, sthen@
20 lines
381 B
Plaintext
20 lines
381 B
Plaintext
Function signature changed in SWIG 4.4:
|
|
https://github.com/coin3d/pivy/pull/139
|
|
|
|
|
|
Index: interfaces/coin.i
|
|
--- interfaces/coin.i.orig
|
|
+++ interfaces/coin.i
|
|
@@ -80,7 +80,11 @@ static int init_file_emulator(void)
|
|
%init %{
|
|
#if PY_MAJOR_VERSION >= 3
|
|
if (init_file_emulator() < 0) {
|
|
+ #if (SWIG_VERSION < 0x040400)
|
|
return NULL;
|
|
+ #else
|
|
+ return 0;
|
|
+ #endif
|
|
}
|
|
#endif
|
|
%}
|