>From d15fa95c0c9509cb96691529e58a4b161a22c4ee Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 15 Oct 2023 12:48:32 +0200 Subject: [PATCH 4/8] MSVC port, part 4: Use CR-LF handling like with mingw. * info/filesys.c (convert_eols, filesys_read_info_file): Treat native Windows like mingw. --- info/filesys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/info/filesys.c b/info/filesys.c index 4befe15bce..273d5f16ab 100644 --- a/info/filesys.c +++ b/info/filesys.c @@ -272,7 +272,7 @@ info_add_extension (char *dirname, char *filename, struct stat *finfo) return 0; } -#if defined (__MSDOS__) || defined (__MINGW32__) +#if defined (__MSDOS__) || defined (_WIN32) /* Given a chunk of text and its length, convert all CRLF pairs at every end-of-line into a single Newline character. Return the length of produced text. @@ -350,7 +350,7 @@ filesys_read_info_file (char *pathname, size_t *filesize, close (descriptor); } -#if defined (__MSDOS__) || defined (__MINGW32__) +#if defined (__MSDOS__) || defined (_WIN32) /* Old versions of makeinfo on MS-DOS or MS-Windows generated Info files with CR-LF line endings which are only counted as one byte in the file tag table. Convert any of these DOS-style CRLF EOLs into Unix-style NL -- 2.34.1