Mercurial > octave
diff libinterp/corefcn/__magick_read__.cc @ 30283:b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
* configure.ac (magick): Do not append "++" to *Magick++ library
name. Use all pre-processor pkg-config flags, not just -I flags.
* __magick_read__.cc: Add using declration for Magick::Quantum.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 12 Nov 2021 09:25:33 +0100 |
parents | 7a4f16bff8fd |
children | a61e1a0f6024 |
line wrap: on
line diff
--- a/libinterp/corefcn/__magick_read__.cc Fri Nov 12 08:25:15 2021 -0500 +++ b/libinterp/corefcn/__magick_read__.cc Fri Nov 12 09:25:33 2021 +0100 @@ -41,6 +41,11 @@ #if defined (HAVE_MAGICK) # include <Magick++.h> # include <clocale> +// FIXME: The following using declaration may be needed to build with +// ImageMagick. It doesn't appear to be needed for GraphicsMagick but +// it also doesn't seem to cause trouble. A configure test would be +// helpful. +using Magick::Quantum; #endif OCTAVE_NAMESPACE_BEGIN