summaryrefslogtreecommitdiff
path: root/perlsdio.h
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>2010-04-21 18:47:48 -0700
committerJan Dubois <jand@activestate.com>2010-04-21 21:56:50 -0700
commit50a4e5359779fd205d8586e68e94e2d99676a8ed (patch)
tree119b8ddbdb3b3e0cf3973017aacb6dacf6b6c05c /perlsdio.h
parent20c8f8f9118fd23081c818637815bf1aab60b808 (diff)
downloadperl-50a4e5359779fd205d8586e68e94e2d99676a8ed.tar.gz
Fix PerlSIO_fputc() and PerlSIO_fputs() signatures
They should have the same prototype as in stdio. This "proper fix" replaces the 5.12.0 compatible fix in commit 634b482, but cannot be integrated into 5.12.1 because it breaks binary compatibility. See also http://rt.perl.org/rt3/Public/Bug/Display.html?id=72704
Diffstat (limited to 'perlsdio.h')
-rw-r--r--perlsdio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlsdio.h b/perlsdio.h
index 1a6f2f01c4..25d6b36add 100644
--- a/perlsdio.h
+++ b/perlsdio.h
@@ -34,8 +34,8 @@
#define PerlIO_fdopen PerlSIO_fdopen
#define PerlIO_reopen PerlSIO_freopen
#define PerlIO_close(f) PerlSIO_fclose(f)
-#define PerlIO_puts(f,s) PerlSIO_fputs(f,s)
-#define PerlIO_putc(f,c) PerlSIO_fputc(f,c)
+#define PerlIO_puts(f,s) PerlSIO_fputs(s,f)
+#define PerlIO_putc(f,c) PerlSIO_fputc(c,f)
#if defined(VMS)
# if defined(__DECC)
/* Unusual definition of ungetc() here to accomodate fast_sv_gets()'