Page 1 of 1
MagickWand.h vs magick_wand.h
Posted: 2011-02-02T02:42:06-07:00
by jave
I'm working on an Emacs bug:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7955
Could you offer an opinion on the best way to solve this?
Re: MagickWand.h vs magick_wand.h
Posted: 2011-02-02T17:56:45-07:00
by magick
The magick_wand.h header file was deprecated after ImageMagick version 6. Its still included in the distribution but probably should not be used since it will be removed in version 7 of ImageMagick (due in 3-4 years). It should not be a problem. Change your configure.ac file to check for MagickWand.h then use a conditional compile, something like:
- #if defined (HAVE_MAGICKWAND_H)
#include <wand/MagickWand.h>
#else
#include <wand/magick_wand.h>
#endif /* HAVE_MAGICKWAND_H */