X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FCompress%2FZlib%2FZlib.pm;h=59d4b8c6534aa58c92c2db369cbcd1b7f888796e;hb=06edba159bc4e4b34ce6253ab0bc6ef61de4c848;hp=71c6706d0c5e6e76a83172238c79e45a7445a3cb;hpb=e866b74b8651a8d5e0458756533f958fc66fd305;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Compress/Zlib/Zlib.pm b/ext/Compress/Zlib/Zlib.pm index 71c6706..59d4b8c 100644 --- a/ext/Compress/Zlib/Zlib.pm +++ b/ext/Compress/Zlib/Zlib.pm @@ -1,7 +1,7 @@ # File : Zlib.pm # Author : Paul Marquess # Created : 30 January 2005 -# Version : 1.34 +# Version : 1.35 # # Copyright (c) 1995-2005 Paul Marquess. All rights reserved. # This program is free software; you can redistribute it and/or @@ -12,7 +12,6 @@ package Compress::Zlib; require 5.004 ; require Exporter; -require DynaLoader; use AutoLoader; use Carp ; use IO::Handle ; @@ -22,9 +21,9 @@ use warnings ; our ($VERSION, @ISA, @EXPORT, $AUTOLOAD); our ($deflateDefault, $deflateParamsDefault, $inflateDefault); -$VERSION = "1.34_01" ; +$VERSION = "1.35" ; -@ISA = qw(Exporter DynaLoader); +@ISA = qw(Exporter); # Items to export into callers namespace by default. Note: do not export # names by default without a very good reason. Use EXPORT_OK instead. # Do not simply export all your public functions/methods/constants. @@ -44,6 +43,7 @@ $VERSION = "1.34_01" ; crc32 ZLIB_VERSION + ZLIB_VERNUM DEF_WBITS OS_CODE @@ -91,7 +91,14 @@ sub AUTOLOAD { goto &{$AUTOLOAD}; } -bootstrap Compress::Zlib $VERSION ; +eval { + require XSLoader; + XSLoader::load('Compress::Zlib', $VERSION); +} or do { + require DynaLoader; + local @ISA = qw(DynaLoader); + bootstrap Compress::Zlib $VERSION ; +} ; # Preloaded methods go here.