diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-03 02:44:40 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-03 02:44:40 +0000 |
commit | 0121b80e4f69c2ad9631e8d20b5c91f3b2a40434 (patch) | |
tree | 49a8ade446c1b6277c06982988700467e1be139c /gnu/usr.bin/perl/fakesdio.h | |
parent | 184128d6fb928711cdef9d8e6980dc6601fb1f87 (diff) |
perl 5.8.2 from CPAN
Diffstat (limited to 'gnu/usr.bin/perl/fakesdio.h')
-rw-r--r-- | gnu/usr.bin/perl/fakesdio.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/usr.bin/perl/fakesdio.h b/gnu/usr.bin/perl/fakesdio.h index 8ef89e9ca5d..d2caa112215 100644 --- a/gnu/usr.bin/perl/fakesdio.h +++ b/gnu/usr.bin/perl/fakesdio.h @@ -1,6 +1,6 @@ /* fakestdio.h * - * Copyright (c) 2000-2002, Larry Wall + * Copyright (C) 2000, by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -55,6 +55,18 @@ #undef tmpfile #undef ungetc #undef vfprintf +#undef printf + +/* printf used to live in perl.h like this - more sophisticated + than the rest + */ +#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC) +#define printf(fmt,args...) PerlIO_stdoutf(fmt,##args) +#else +#define printf PerlIO_stdoutf +#endif +#endif + #define fprintf PerlIO_printf #define stdin PerlIO_stdin() #define stdout PerlIO_stdout() |