diff options
| author | Mike Wey | 2011-10-19 23:50:45 +0200 |
|---|---|---|
| committer | Mike Wey | 2011-10-19 23:50:45 +0200 |
| commit | bec3bf31118ba154a2d2b9739c70f9db2c3ac904 (patch) | |
| tree | 337c3d2bc4257c3026273e46c2169a8f91a0184b /dmagick/c/morphology.d | |
| parent | 1b95c603a592deb7cef49e9787ede824b94444e0 (diff) | |
Add support for imageMagick 6.6.0 to the headers.
Diffstat (limited to 'dmagick/c/morphology.d')
| -rw-r--r-- | dmagick/c/morphology.d | 9 |
1 files changed, 7 insertions, 2 deletions
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); } |
