diff options
| author | Mike Wey | 2014-11-30 19:29:07 +0100 |
|---|---|---|
| committer | Mike Wey | 2014-11-30 19:29:07 +0100 |
| commit | ec8851cf174b2215441ddb377eb7a9ef33f1b3c0 (patch) | |
| tree | a6496d1b896ce0611dc148184f9a9793b90d1835 /dmagick/c/magickType.d | |
| parent | a158740e2834824a70997375a1d813f8d55f6adc (diff) | |
Update the headers for ImageMagick 6.9.0.ImageMagick_6.9.0
Diffstat (limited to 'dmagick/c/magickType.d')
| -rw-r--r-- | dmagick/c/magickType.d | 21 |
1 files changed, 18 insertions, 3 deletions
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; |
