diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-02-25 10:53:24 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-02-25 10:53:24 +0000 |
commit | c745e42cb33cb9fcfc4d47fe732cfa4725aa5d07 (patch) | |
tree | 98f3a5ded728ca6be3ed06919cb5002cffac4081 /perl.h | |
parent | 2a936312a7ab627c98624c1ea83115246309b3d7 (diff) | |
download | perl-c745e42cb33cb9fcfc4d47fe732cfa4725aa5d07.tar.gz |
GCC __atribute__ / printf fix
p4raw-id: //depot/perlio@8926
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2209,7 +2209,7 @@ struct ufuncs { /* In pre-5.7-Perls the 'U' magic didn't get the thread context. * XS code wanting to be backward compatible can do something * like the following: - + #ifndef PERL_MG_UFUNC #define PERL_MG_UFUNC(name,ix,sv) I32 name(IV ix, SV *sv) #endif @@ -3332,8 +3332,12 @@ typedef struct am_table_short AMTS; * Remap printf */ #undef printf +#ifdef __GNUC__ +#define printf(fmt,args...) PerlIO_stdoutf(fmt,##args) +#else #define printf PerlIO_stdoutf #endif +#endif /* if these never got defined, they need defaults */ #ifndef PERL_SET_CONTEXT |