diff options
| author | Mike Wey | 2017-05-19 20:29:37 +0200 |
|---|---|---|
| committer | Mike Wey | 2017-05-19 20:31:44 +0200 |
| commit | 87c811161c608f8428ff8e399c60f9672c6cfc7e (patch) | |
| tree | 59f2d3656e14e13c32354a835a5251bea864a174 /dmagick/c/quantum.d | |
| parent | 1f55c1eaf58bd2bcdb8d11656e816db2e9f05682 (diff) | |
Swith to using a config file.
This is hopefully a first step to supporting dub. See #12
Diffstat (limited to 'dmagick/c/quantum.d')
| -rw-r--r-- | dmagick/c/quantum.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dmagick/c/quantum.d b/dmagick/c/quantum.d index f86d59c..0c2daa6 100644 --- a/dmagick/c/quantum.d +++ b/dmagick/c/quantum.d @@ -70,7 +70,7 @@ extern(C) alias ClampToQuantum RoundToQuantum; static pure nothrow Quantum ClampToQuantum(const MagickRealType value) { - version(MagickCore_HDRI) + static if(MagickHDRISupport) { return value; } @@ -86,7 +86,7 @@ extern(C) static pure nothrow ubyte ScaleQuantumToChar(const Quantum quantum) { - version(MagickCore_HDRI) + static if(MagickHDRISupport) { if ( quantum <= 0 ) return 0; |
