This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Accept experimental script_run feature
[perl5.git] / fakesdio.h
index 4791232..b8f972a 100644 (file)
@@ -1,3 +1,12 @@
+/*    fakesdio.h
+ *
+ *    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.
+ *
+ */
+
 /*
  * This is "source level" stdio compatibility mode.
  * We try and #define stdio functions in terms of PerlIO.
 #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()
 #define fscanf                 _CANNOT _fscanf_
 #define fgets(s,n,f)           _CANNOT _fgets_
 
+/*
+ * ex: set ts=8 sts=4 sw=4 et:
+ */