From 56700aff9af032c5f9b1100805666c044d997d3f Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sat, 10 Aug 2024 16:07:46 +0200 Subject: [PATCH] Declare gdImageGetInterpolationMethod() for bundled GD When this function has been added to our bundled GD[1], it had been overlooked to also declare it in gd.h, like it's done in libgd. While MSVC doesn't have any issues with this, clang reports an error. [1] --- ext/gd/libgd/gd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h index 783b3fa403a7a..7e9b619f11014 100644 --- a/ext/gd/libgd/gd.h +++ b/ext/gd/libgd/gd.h @@ -878,6 +878,7 @@ gdImagePtr gdImageCropAuto(gdImagePtr im, const unsigned int mode); gdImagePtr gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold); int gdImageSetInterpolationMethod(gdImagePtr im, gdInterpolationMethod id); +gdInterpolationMethod gdImageGetInterpolationMethod(gdImagePtr im); gdImagePtr gdImageScaleBilinear(gdImagePtr im, const unsigned int new_width, const unsigned int new_height); gdImagePtr gdImageScaleBicubic(gdImagePtr src_img, const unsigned int new_width, const unsigned int new_height);