@@ -812,14 +812,19 @@ private static function init(): void
812
812
"VipsOperation " => self ::$ vips ->type ("VipsOperation* " ),
813
813
"VipsImage " => self ::$ vips ->type ("VipsImage* " ),
814
814
"VipsInterpolate " => self ::$ vips ->type ("VipsInterpolate* " ),
815
- "VipsConnection " => self ::$ vips ->type ("VipsConnection* " ),
816
- "VipsSource " => self ::$ vips ->type ("VipsSource* " ),
817
- "VipsSourceCustom " => self ::$ vips ->type ("VipsSourceCustom* " ),
818
- "VipsTarget " => self ::$ vips ->type ("VipsTarget* " ),
819
- "VipsTargetCustom " => self ::$ vips ->type ("VipsTargetCustom* " ),
820
815
"VipsProgress " => self ::$ vips ->type ("VipsProgress* " ),
821
816
];
822
817
818
+ if (self ::atLeast (8 , 9 )) {
819
+ self ::$ ctypes = array_merge (self ::$ ctypes , [
820
+ "VipsConnection " => self ::$ vips ->type ("VipsConnection* " ),
821
+ "VipsSource " => self ::$ vips ->type ("VipsSource* " ),
822
+ "VipsSourceCustom " => self ::$ vips ->type ("VipsSourceCustom* " ),
823
+ "VipsTarget " => self ::$ vips ->type ("VipsTarget* " ),
824
+ "VipsTargetCustom " => self ::$ vips ->type ("VipsTargetCustom* " ),
825
+ ]);
826
+ }
827
+
823
828
self ::$ gtypes = [
824
829
"gboolean " => self ::$ gobject ->g_type_from_name ("gboolean " ),
825
830
"gint " => self ::$ gobject ->g_type_from_name ("gint " ),
0 commit comments