/[public]/psiconv/trunk/program/psiconv/magick-aux.c
ViewVC logotype

Diff of /psiconv/trunk/program/psiconv/magick-aux.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 58 Revision 142
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18*/ 18*/
19 19
20#include "config.h" 20#include "config.h"
21 21
22#if IMAGEMAGICK 22#ifdef IMAGEMAGICK
23 23
24#include "magick-aux.h" 24#include "magick-aux.h"
25#include <magick/magick.h> 25#include <magick/magick.h>
26#include <magick/config.h> 26#include <magick/config.h>
27 27
28/* This is so ugly, but it is the only way to make ImageMagick 5 behave 28#endif
29 * properly. It really needs a better interface.
30 * OpenModules makes sure all needed modules are loaded. But it may not
31 * be called until some things are initialized, hence the extra
32 * GetMagickInfo call. Ugh.
33 */
34 29
35extern void OpenModules(void); 30#ifdef DMALLOC
31#include "dmalloc.h"
32#endif
36 33
34#if IMAGEMAGICK
35
36/* This used to be very ugly, but nowadays it is much better */
37
37MagickInfo * GetMagickFileList(void) 38const MagickInfo * GetMagickFileList(void)
38{ 39{
39 GetMagickInfo(NULL); 40 ExceptionInfo exc;
40#if defined(HasLTDL) 41 GetExceptionInfo(&exc);
41 OpenModules(); 42 OpenModules(&exc);
42#endif
43 return GetMagickInfo(NULL); 43 return GetMagickInfo(NULL,&exc);
44} 44}
45 45
46#endif /* IMAGEMAGICK */ 46#endif /* IMAGEMAGICK */

Legend:
Removed from v.58  
changed lines
  Added in v.142

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26