From aee3a1a5cec87840c35516debb399ce3d2ab6598 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Tue, 18 Oct 2011 23:30:54 +0200 Subject: Add support for imageMagick 6.6.3 to the headers. --- dmagick/c/statistic.d | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) (limited to 'dmagick/c/statistic.d') diff --git a/dmagick/c/statistic.d b/dmagick/c/statistic.d index 2699cb9..8a3ffd7 100644 --- a/dmagick/c/statistic.d +++ b/dmagick/c/statistic.d @@ -3,6 +3,7 @@ module dmagick.c.statistic; import dmagick.c.exception; import dmagick.c.image; import dmagick.c.magickType; +import dmagick.c.magickVersion; extern(C) { @@ -11,18 +12,31 @@ extern(C) size_t depth; - double - minima, - maxima, - sum, - sum_squared, - sum_cubed, - sum_fourth_power, - mean, - variance, - standard_deviation, - kurtosis, - skewness; + static if ( MagickLibVersion >= 0x664 ) + { + double + minima, + maxima, + sum, + sum_squared, + sum_cubed, + sum_fourth_power, + mean, + variance, + standard_deviation, + kurtosis, + skewness; + } + else + { + double + minima, + maxima, + mean, + standard_deviation, + kurtosis, + skewness; + } } enum MagickEvaluateOperator -- cgit v1.2.3