summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-05 07:28:59 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-05 07:28:59 +0000
commit8ba9dee36046939ca96a462c19c93dee3e0d9d52 (patch)
treec7fa86ab6faeb14a87ce6da74ed5bb78320f73b5 /perl.h
parent86959918b69bd7566746d776574341f410f68755 (diff)
parent59c10aa22854831f97f41f8f8237b4d9b2426b0f (diff)
downloadperl-8ba9dee36046939ca96a462c19c93dee3e0d9d52.tar.gz
Integrate with mainperl.
p4raw-id: //depot/cfgperl@3585
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 5d19c639d3..cfa97cb96f 100644
--- a/perl.h
+++ b/perl.h
@@ -281,7 +281,7 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
*/
/* define this once if either system, instead of cluttering up the src */
-#if defined(MSDOS) || defined(atarist) || defined(WIN32) || defined(CYGWIN32)
+#if defined(MSDOS) || defined(atarist) || defined(WIN32)
#define DOSISH 1
#endif
@@ -1580,6 +1580,18 @@ union any {
#define ARGSproto
#endif /* USE_THREADS */
+#if defined(CYGWIN32)
+/* USEMYBINMODE
+ * This symbol, if defined, indicates that the program should
+ * use the routine my_binmode(FILE *fp, char iotype) to insure
+ * that a file is in "binary" mode -- that is, that no translation
+ * of bytes occurs on read or write operations.
+ */
+#define USEMYBINMODE / **/
+#define my_binmode(fp, iotype) \
+ (PerlLIO_setmode(PerlIO_fileno(fp), O_BINARY) != -1 ? TRUE : FALSE)
+#endif
+
typedef I32 (*filter_t) (pTHXo_ int, SV *, int);
#define FILTER_READ(idx, sv, len) filter_read(idx, sv, len)