From d51f0db6a1ab97f2bbcd8c70419e3e633fbae05a Mon Sep 17 00:00:00 2001 From: Jonas Wallden <jonasw@roxen.com> Date: Tue, 12 Sep 2000 18:41:05 +0200 Subject: [PATCH] Now compiles without GIF support. Rev: lib/modules/_Image.pmod/module.pmod:1.9 --- lib/modules/_Image.pmod/module.pmod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/modules/_Image.pmod/module.pmod b/lib/modules/_Image.pmod/module.pmod index b01862155d..0134bcd47c 100644 --- a/lib/modules/_Image.pmod/module.pmod +++ b/lib/modules/_Image.pmod/module.pmod @@ -1,5 +1,5 @@ //! module Image -//! $Id: module.pmod,v 1.8 2000/03/22 18:12:19 peter Exp $ +//! $Id: module.pmod,v 1.9 2000/09/12 16:41:05 jonasw Exp $ //! method object(Image.Image) load() //! method object(Image.Image) load(object file) @@ -32,6 +32,7 @@ mapping _decode( string data, mixed|void tocolor ) tocolor = 0; } // Use the low-level decode function to get the alpha channel. +#if constant(Image.GIF) && constant(Image.GIF.RENDER) catch { array chunks = Image["GIF"]->_decode( data ); @@ -44,6 +45,7 @@ mapping _decode( string data, mixed|void tocolor ) [i,a] = chunk[3..4]; format = "GIF"; }; +#endif if(!i) foreach( ({ "GIF", "JPEG", "XWD", "PNM", "RAS" }), string fmt ) -- GitLab