X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/eb1102fcca2230364ceadea29bd8e87ee51b15fa..eef8d518b95b0221f81805d75bd63fbbf2995f3b:/fakesdio.h diff --git a/fakesdio.h b/fakesdio.h index 8ef89e9..b8f972a 100644 --- a/fakesdio.h +++ b/fakesdio.h @@ -1,6 +1,6 @@ -/* fakestdio.h +/* fakesdio.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,17 @@ #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 + #define fprintf PerlIO_printf #define stdin PerlIO_stdin() #define stdout PerlIO_stdout() @@ -111,3 +122,6 @@ #define fscanf _CANNOT _fscanf_ #define fgets(s,n,f) _CANNOT _fgets_ +/* + * ex: set ts=8 sts=4 sw=4 et: + */