From: Andy Lester Date: Fri, 11 Nov 2005 17:20:30 +0000 (-0600) Subject: mathoms prototypes aren't prototypes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6e497a67282fbaa21d30ea7f9a77c442f52fbd50;p=p5sagit%2Fp5-mst-13.2.git mathoms prototypes aren't prototypes Message-ID: <20051111232030.GA882@petdance.com> p4raw-id: //depot/perl@26099 --- diff --git a/mathoms.c b/mathoms.c index 113aac0..703918d 100644 --- a/mathoms.c +++ b/mathoms.c @@ -29,7 +29,7 @@ #define PERL_IN_MATHOMS_C #include "perl.h" -void Perl_mathoms() {} +void Perl_mathoms(void) {} /* ref() is now a macro using Perl_doref; * this version provided for binary compatibility only. diff --git a/perl.c b/perl.c index e28ce5d..8a0483c 100644 --- a/perl.c +++ b/perl.c @@ -139,8 +139,9 @@ static I32 read_e_script(pTHX_ int idx, SV *buf_sv, int maxlen); #ifndef NO_MATHOMS /* This reference ensures that the mathoms are linked with perl */ -extern void Perl_mathoms(); -void Perl_mathoms_ref() { +extern void Perl_mathoms(void); +void Perl_mathoms_ref(void); +void Perl_mathoms_ref(void) { Perl_mathoms(); } #endif