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.
Post Reply
jave
Posts: 10
Joined: 2010-06-24T02:17:44-07:00
Authentication code: 8675308

MagickWand.h vs magick_wand.h

Post by jave » 2011-02-02T02:42:06-07:00

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?

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

Re: MagickWand.h vs magick_wand.h

Post by magick » 2011-02-02T17:56:45-07:00

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 */

Post Reply