ports/graphics/zbar/files/patch-zbarimg_zbarimg.c
Kurt Jaeger ca05fbc6a8 graphics/zbar: make the ImageMagick an option, 7 the default
PR:		221391
Reported by:	vvd@unislabs.com
Approved by:	dev2@heesakkers.info (maintainer timeout)
2019-01-27 10:42:24 +00:00

14 lines
360 B
C

--- zbarimg/zbarimg.c.orig 2009-10-23 18:16:44 UTC
+++ zbarimg/zbarimg.c
@@ -38,7 +38,11 @@
#include <assert.h>
#include <zbar.h>
+#if MAGICK_MAJOR < 7
#include <wand/MagickWand.h>
+#else
+#include <MagickWand/MagickWand.h>
+#endif
/* in 6.4.5.4 MagickGetImagePixels changed to MagickExportImagePixels.
* (still not sure this check is quite right...