From ec8851cf174b2215441ddb377eb7a9ef33f1b3c0 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 30 Nov 2014 19:29:07 +0100 Subject: Update the headers for ImageMagick 6.9.0. --- dmagick/c/magickType.d | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'dmagick/c/magickType.d') diff --git a/dmagick/c/magickType.d b/dmagick/c/magickType.d index 89e1cec..0fc0264 100644 --- a/dmagick/c/magickType.d +++ b/dmagick/c/magickType.d @@ -56,9 +56,16 @@ extern (C) * a pixel channel. */ version(MagickCore_HDRI) - alias float Quantum; + { + static if ( MagickLibVersion >= 0x690 ) + alias double Quantum; + else + alias float Quantum; + } else + { alias uint Quantum; + } alias double SignedQuantum; @@ -87,8 +94,16 @@ extern (C) * Quantum is an alias for the smallest integer that can hold * a pixel channel. */ - alias double Quantum; - alias double SignedQuantum; + static if ( MagickLibVersion >= 0x690 ) + { + alias real Quantum; + alias real SignedQuantum; + } + else + { + alias double Quantum; + alias double SignedQuantum; + } //real seems to be the same size as long double for //dmc and dmd on windows and for dmd and gcc on linux. alias real MagickRealType; -- cgit v1.2.3