diff options
author | Tomasz Konojacki <me@xenu.pl> | 2021-12-16 21:15:56 +0100 |
---|---|---|
committer | xenu <me@xenu.pl> | 2021-12-17 00:00:20 +0100 |
commit | a3aaec921c9b50eb220092214145c88a5ccc7980 (patch) | |
tree | e60d8274afd5d94762829bbafe92c4cd2b53f0e8 | |
parent | e52290376581637e8c1202751e9a791e18bc05ff (diff) | |
download | perl-a3aaec921c9b50eb220092214145c88a5ccc7980.tar.gz |
fix struct ioinfo definition for Mingw
The "#ifndef _SAFECRT_IMPL" part made sense only for no longer
supported versions of Visual C++, but
92ca2349051b948d915e3fc721e3cbb97e7271e2 has accidentally exposed it
to Mingw builds.
-rw-r--r-- | win32/win32.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/win32/win32.h b/win32/win32.h index 970411d942..fea567f787 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -627,19 +627,6 @@ typedef struct { char pipech; /* one char buffer for handles opened on pipes */ int lockinitflag; CRITICAL_SECTION lock; -/* this struct definition breaks ABI compatibility with - * not using, cl.exe's native VS version specitfic CRT. */ -# ifndef _SAFECRT_IMPL - /* Not used in the safecrt downlevel. We do not define them, so we cannot - * use them accidentally */ - char textmode : 7;/* __IOINFO_TM_ANSI or __IOINFO_TM_UTF8 or __IOINFO_TM_UTF16LE */ - char unicode : 1; /* Was the file opened as unicode? */ - char pipech2[2]; /* 2 more peak ahead chars for UNICODE mode */ - __int64 startpos; /* File position that matches buffer start */ - BOOL utf8translations; /* Buffer contains translations other than CRLF*/ - char dbcsBuffer; /* Buffer for the lead byte of dbcs when converting from dbcs to unicode */ - BOOL dbcsBufferUsed; /* Bool for the lead byte buffer is used or not */ -# endif } ioinfo; #else typedef intptr_t ioinfo; |