ext/image_histograms_lut.c in ruby-vips-0.3.5 vs ext/image_histograms_lut.c in ruby-vips-0.3.6

- old
+ new

@@ -425,11 +425,11 @@ */ VALUE img_mpercent_hist(VALUE obj, VALUE percent) { -#if IM_MAJOR_VERSION > 7 || IM_MINOR_VERSION >= 22 +#if ATLEAST_VIPS( 7, 22 ) int ret; GetImg(obj, data, im); if (im_mpercent_hist(im, NUM2DBL(percent), &ret)) vips_lib_error(); @@ -625,10 +625,10 @@ VALUE img_tone_analyse(VALUE obj, VALUE ps, VALUE pm, VALUE ph, VALUE s, VALUE m, VALUE h) { -#if IM_MAJOR_VERSION > 7 || IM_MINOR_VERSION >= 23 +#if ATLEAST_VIPS( 7, 23 ) GetImg(obj, data, im); OutImg(obj, new, data_new, im_new); if (im_tone_analyse(im, im_new, NUM2DBL(ps), NUM2DBL(pm), NUM2DBL(ph),