Skip to content

Commit 22adcce

Browse files
committed
Disable XS prototypes by default
When neither -prototypes not -noprototypes is passed to xsubpp, it will require the XS files to contain a PROTOTYPES statement. This is a compatibility feature that dealt with a breaking change in 1996, it long stopped having any purpose. Module::Build has disabled it since the very first version that supported XS (0.03 in 2001), and so should we.
1 parent b31ca34 commit 22adcce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ExtUtils/MM_Unix.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3967,7 +3967,7 @@ sub tool_xsubpp {
39673967
}
39683968

39693969

3970-
$self->{XSPROTOARG} = "" unless defined $self->{XSPROTOARG};
3970+
$self->{XSPROTOARG} = "-noprototypes" unless defined $self->{XSPROTOARG};
39713971
$self->tool_xsubpp_emit($xsdir, \@tmdeps, \@tmargs);
39723972
}
39733973

0 commit comments

Comments
 (0)