diff --git a/ChangeLog b/ChangeLog index f44fc42027..f438b1bc4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jul 11 17:35:01 CEST 1999 Marc Lehmann + + * plug-ins/unsharp/unsharp.c: rename round to round2int to avoid + clashes with the upcoming c9x standard. + Sun Jul 11 15:19:34 CEST 1999 Marc Lehmann * plug-ins/common/png.c: add abort() to save_image, as to catch diff --git a/plug-ins/common/unsharp.c b/plug-ins/common/unsharp.c index 0feee4db19..ccf5600ab1 100644 --- a/plug-ins/common/unsharp.c +++ b/plug-ins/common/unsharp.c @@ -68,7 +68,7 @@ static inline void blur_line(gdouble* ctable, gdouble* cmatrix, gint cmatrix_len gint y, glong bytes); static int gen_convolve_matrix(double std_dev, double** cmatrix); static gdouble* gen_lookup_table(gdouble* cmatrix, gint cmatrix_length); -static inline gint round(gdouble i); +static inline gint round2int(gdouble i); static void unsharp_region (GPixelRgn srcPTR, GPixelRgn dstPTR, gint width, gint height, gint bytes, gdouble radius, gdouble amount, @@ -434,7 +434,7 @@ static void unsharp_region (GPixelRgn srcPR, GPixelRgn destPR, gimp_progress_init("Merging..."); /* find integer value of threshold */ - threshold = round( unsharp_params.threshold * 255.0 ); + threshold = round2int( unsharp_params.threshold * 255.0 ); /* merge the source and destination images */ for (row = 0; row < y; row++) { @@ -499,7 +499,7 @@ static inline void blur_line(gdouble* ctable, gdouble* cmatrix, for (j = cmatrix_length/2 - row; j