From d09b8224f8e01455686f9ba353d5c8fe71586a81 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 1 Aug 2017 00:00:27 -0400 Subject: [PATCH] oops --- pcx.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcx.d b/pcx.d index b7e30b5..7e43e55 100644 --- a/pcx.d +++ b/pcx.d @@ -145,7 +145,7 @@ private MemoryImage loadPcxImpl(ST) (auto ref ST fl, const(char)[] filename) { hasAlpha = (hdr.colorplanes == 4); } - { import core.stdc.stdio; printf("colorplanes=%u; bitsperpixel=%u; bytesperline=%u\n", cast(uint)hdr.colorplanes, cast(uint)hdr.bitsperpixel, cast(uint)hdr.bytesperline); } + version(arsd_debug_pcx) { import core.stdc.stdio; printf("colorplanes=%u; bitsperpixel=%u; bytesperline=%u\n", cast(uint)hdr.colorplanes, cast(uint)hdr.bitsperpixel, cast(uint)hdr.bytesperline); } // additional checks if (hdr.reserved != 0) throw new Exception("invalid pcx hdr");