From b0f262091f716f635f32a8c5d97500ca937aebf5 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 4 Nov 2013 14:34:36 +0000 Subject: [PATCH] oop fix compile --- libvips/deprecated/vips7compat.c | 9 ++++++++- libvips/include/vips/vips7compat.h | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libvips/deprecated/vips7compat.c b/libvips/deprecated/vips7compat.c index 39ff29cc..8e89736b 100644 --- a/libvips/deprecated/vips7compat.c +++ b/libvips/deprecated/vips7compat.c @@ -2236,13 +2236,20 @@ im_addgnoise( IMAGE *in, IMAGE *out, double sigma ) return( 0 ); } +int +im_contrast_surface_raw( IMAGE *in, IMAGE *out, int half_win_size, int spacing ) +{ + im_error( "im_contrast_surface_raw", "no compat function" ); + return( -1 ); +} + /* This replaces some custom code in 7.36 and earlier. The hand-made one was * slower for spacing == 1, though faster for large values of spacing. * * Not worth maintaining a special operator for. */ int -im_contrast_surface (IMAGE * in, IMAGE * out, int half_win_size, int spacing) +im_contrast_surface( IMAGE *in, IMAGE *out, int half_win_size, int spacing ) { VipsImage **t = (VipsImage **) vips_object_local_array( VIPS_OBJECT( out ), 10 ); diff --git a/libvips/include/vips/vips7compat.h b/libvips/include/vips/vips7compat.h index 00557152..cfeae70d 100644 --- a/libvips/include/vips/vips7compat.h +++ b/libvips/include/vips/vips7compat.h @@ -918,6 +918,8 @@ int im_lindetect( VipsImage *in, VipsImage *out, INTMASK *mask ); int im_addgnoise( VipsImage *in, VipsImage *out, double sigma ); +int im_contrast_surface_raw( IMAGE *in, IMAGE *out, + int half_win_size, int spacing ); int im_contrast_surface( VipsImage *in, VipsImage *out, int half_win_size, int spacing );