diff options
author | Fifer, Eric <EFifer@sanwaint.com> | 1999-06-02 16:16:05 +0100 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-05 05:17:12 +0000 |
commit | 1cab015a482fdf2a2c78aa5bae65199be3b5e3c8 (patch) | |
tree | e02b004521f99ac1666a83c1a55c3d9d5e780236 /perl.h | |
parent | 16cebae21a82370677b73e4db793c726b3f4ff27 (diff) | |
download | perl-1cab015a482fdf2a2c78aa5bae65199be3b5e3c8.tar.gz |
cygwin32 update
Message-Id: <71E287AB0D94D111BBD600600849EC8185EDD9@POST>
Subject: [ID 19990602.003] perl5.005_03 (CORE) cygwin32 port
p4raw-id: //depot/perl@3582
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 @@ -1576,6 +1576,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) |