MagickWand.h vs magick_wand.h

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Posts: 10
Joined: 2010-06-24T02:17:44-07:00
Authentication code: 8675308

MagickWand.h vs magick_wand.h

Post by jave »

I'm working on an Emacs bug:

Could you offer an opinion on the best way to solve this?

User avatar
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: MagickWand.h vs magick_wand.h

Post 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 file to check for MagickWand.h then use a conditional compile, something like:
  • #if defined (HAVE_MAGICKWAND_H)
    #include <wand/MagickWand.h>
    #include <wand/magick_wand.h>
    #endif /* HAVE_MAGICKWAND_H */