X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FExporter.pm;h=15a918cccde55a7ecf0b5e46e4c4ddb3c6265502;hb=38bf2a2585e26a47c919fd4c286b7716acb51c00;hp=0f40570d9380818f84472944225fc7117c8584a2;hpb=c4df9302dc30e06117434030b88568e22e6bdec5;p=gitmo%2FMoose.git diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index 0f40570..15a918c 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -5,6 +5,15 @@ use warnings; our $AUTHORITY = 'cpan:STEVAN'; +use XSLoader; + +BEGIN { + XSLoader::load( + 'Moose', + $Moose::{VERSION} ? $Moose::{VERSION} : () + ); +} + use Class::MOP; use List::MoreUtils qw( first_index uniq ); use Moose::Util::MetaRole; @@ -12,10 +21,6 @@ use Scalar::Util qw(reftype); use Sub::Exporter 0.980; use Sub::Name qw(subname); -use XSLoader; - -XSLoader::load( 'Moose', $XS_VERSION ); - my %EXPORT_SPEC; sub setup_import_methods {