]> git.imager.perl.org - imager.git/commitdiff
added function to check giflib version
authorTony Cook <tony@develop=help.com>
Thu, 12 Apr 2001 13:57:56 +0000 (13:57 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 12 Apr 2001 13:57:56 +0000 (13:57 +0000)
Imager.xs

index 2eb4dfe74a716bf437721f30c178b45e402592b5..3b70fb8006e39eb939632121d1adcac1cfbbe5ff 100644 (file)
--- a/Imager.xs
+++ b/Imager.xs
@@ -1056,6 +1056,11 @@ i_readpng_scalar(...)
 
 #ifdef HAVE_LIBGIF
 
+void
+i_giflib_version()
+       PPCODE:
+         PUSHs(sv_2mortal(newSVnv(IM_GIFMAJOR+IM_GIFMINOR*0.1)));
+
 undef_int
 i_writegif(im,fd,colors,pixdev,fixed)
     Imager::ImgRaw     im