From bec3bf31118ba154a2d2b9739c70f9db2c3ac904 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Wed, 19 Oct 2011 23:50:45 +0200 Subject: Add support for imageMagick 6.6.0 to the headers. --- dmagick/c/morphology.d | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'dmagick/c/morphology.d') diff --git a/dmagick/c/morphology.d b/dmagick/c/morphology.d index 5b5c814..bc27957 100644 --- a/dmagick/c/morphology.d +++ b/dmagick/c/morphology.d @@ -198,7 +198,12 @@ extern(C) KernelInfo* AcquireKernelInfo(const(char)*); KernelInfo* AcquireKernelBuiltIn(const KernelInfoType, const(GeometryInfo)*); - KernelInfo* CloneKernelInfo(const(KernelInfo)*); + + static if ( MagickLibVersion >= 0x661 ) + { + KernelInfo* CloneKernelInfo(const(KernelInfo)*); + } + KernelInfo* DestroyKernelInfo(KernelInfo*); Image* MorphologyImage(const(Image)*, const MorphologyMethod, const ssize_t, const(KernelInfo)*, ExceptionInfo*); @@ -208,7 +213,7 @@ extern(C) { void ScaleGeometryKernelInfo(KernelInfo*, const(char)*); } - else + else static if ( MagickLibVersion == 0x661 ) { void ScaleKernelInfo(KernelInfo*, const double, const GeometryFlags); } -- cgit v1.2.3