Skip to content

Commit 43f554d

Browse files
authored
fix: SWIG 4.4+ compatibility
sigrokproject#280
1 parent 0ce0720 commit 43f554d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bindings/python/sigrok/core/classes.i

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ typedef guint pyg_flags_type;
7474
*/
7575
if (!GLib) {
7676
fprintf(stderr, "Import of gi.repository.GLib failed.\n");
77+
#if (SWIG_VERSION < 0x040400)
7778
return nullptr;
79+
#else
80+
return 0;
81+
#endif
7882
}
7983
import_array();
8084
%}

0 commit comments

Comments
 (0)