1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-24 07:02:30 +01:00

wrlib: Fix typo in macro containing ImageMagick version

It's USE_MAGICK, not USE_MAGIC.  Also, we wrap the if/else statement
in an ifdef.  This doesn't really affect anything since load_magick.c
won't be compiled if USE_MAGICK is undefined because of an if statement
in the Makefile.  But in the off chance that it is somehow, then we will
try to load a nonexistent version 6 header file since USE_MAGICK will
be interprested as 0 and 0 < 7 is true.
This commit is contained in:
Doug Torrance
2020-04-18 23:00:34 -04:00
committed by Carlos R. Mafra
parent 1713a88656
commit 3022edd060

View File

@@ -22,11 +22,13 @@
#include "config.h"
#if USE_MAGIC < 7
#ifdef USE_MAGICK
#if USE_MAGICK < 7
#include <wand/magick_wand.h>
#else
#include <MagickWand/MagickWand.h>
#endif
#endif
#include "wraster.h"
#include "imgformat.h"