summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 1259f62693..a1ddcf0d02 100644
--- a/perl.h
+++ b/perl.h
@@ -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