mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-28 01:12:30 +01:00
wrlib: Compile with either ImageMagick 6 and 7
We dropped ImageMagick 6 support in 0.95.9. However, ImageMagick 6 is still widespread (e.g., ImageMagick 7 has not been packaged in Debian yet), and upstream plans on maintaining it until at least 2028 [1]. In this patch, we detect the version of the MagickWand library installed on the user's system and include the appropriate header file when building wrlib. Note: I've only tested this with ImageMagick 6, so I'd appreciate confirmation that it works with ImageMagick 7. [1] https://github.com/ImageMagick/ImageMagick6/blob/master/NEWS.txt
This commit is contained in:
committed by
Carlos R. Mafra
parent
27dc5efd2e
commit
dfa92906c0
@@ -22,7 +22,11 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#if USE_MAGIC < 7
|
||||
#include <wand/magick_wand.h>
|
||||
#else
|
||||
#include <MagickWand/MagickWand.h>
|
||||
#endif
|
||||
|
||||
#include "wraster.h"
|
||||
#include "imgformat.h"
|
||||
|
||||
Reference in New Issue
Block a user