summaryrefslogtreecommitdiff
path: root/iperlsys.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2000-10-29 21:05:04 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2000-10-29 21:05:04 +0000
commit4c26942a369632c790d266d8d26f6495e6383c3e (patch)
treebaee4425f5ac95ec510e9d8846ed17d6aee674e3 /iperlsys.h
parentb1ef6e3bd726972447a8b536231f096656903bb3 (diff)
parent39ca283eb96f3f63e2aa42b33b559e2ab96b0231 (diff)
downloadperl-4c26942a369632c790d266d8d26f6495e6383c3e.tar.gz
Integrate mainline to perlio branch
p4raw-id: //depot/perlio@7486
Diffstat (limited to 'iperlsys.h')
-rw-r--r--iperlsys.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/iperlsys.h b/iperlsys.h
index 9357e0e2d6..caca9df2d8 100644
--- a/iperlsys.h
+++ b/iperlsys.h
@@ -186,13 +186,19 @@ struct IPerlStdIOInfo
#ifdef USE_STDIO_PTR
# define PerlIO_has_cntptr(f) 1
-# ifdef STDIO_CNT_LVALUE
-# define PerlIO_canset_cnt(f) 1
-# ifdef STDIO_PTR_LVALUE
+# ifdef STDIO_PTR_LVALUE
+# ifdef STDIO_CNT_LVALUE
+# define PerlIO_canset_cnt(f) 1
+# ifdef STDIO_PTR_LVAL_NOCHANGE_CNT
+# define PerlIO_fast_gets(f) 1
+# endif
+# else /* STDIO_CNT_LVALUE */
+# define PerlIO_canset_cnt(f) 0
+# endif
+# else /* STDIO_PTR_LVALUE */
+# ifdef STDIO_PTR_LVAL_SETS_CNT
# define PerlIO_fast_gets(f) 1
# endif
-# else
-# define PerlIO_canset_cnt(f) 0
# endif
#else /* USE_STDIO_PTR */
# define PerlIO_has_cntptr(f) 0