ext/ruby_vips.c in ruby-vips-0.3.5 vs ext/ruby_vips.c in ruby-vips-0.3.6
- old
+ new
@@ -125,13 +125,13 @@
g_option_context_free(context);
xfree(argv);
}
+#if ATLEAST_VIPS( 7, 28 )
/* We use the vips7 interface, so the vips8 cache will not help us.
* Disable it and save 100mb or so of memory in vips-7.28 and later.
*/
-#if IM_MAJOR_VERSION >= 7 && IM_MINOR_VERSION >= 28
vips_cache_set_max_mem( 0 );
#endif
}
/*