Correct version checking for MagickCannyEdgeImage, which is the API function name, not the internal name,

This commit is contained in:
Danack
2024-06-19 16:12:47 +01:00
committed by Jakub Zelenka
parent 48233340fb
commit e6b934c914
+4 -7
View File
@@ -34,13 +34,10 @@
#endif
#if MagickLibVersion >= 0x700
#if MagickLibVersion >= 0x709
#define IM_HAVE_IMAGICK_CANNYEDGEIMAGE 1
#endif
#elif MagickLibVersion >= 0x690
// This may actually be available from 6.8.10, but both versions are ancient
#define IM_HAVE_IMAGICK_CANNYEDGEIMAGE 1
// Although there is some 'cannyEdgeImage' code in ImageMagick 6,
// there is no 'MagickCannyEdgeImage' exported function in the API.
#if MagickLibVersion >= 0x709
#define IM_HAVE_IMAGICK_CANNYEDGEIMAGE 1
#endif