>From f4aa5dbc214b1678a53df8a72c0d7666924d7907 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 15 Oct 2023 13:05:25 +0200 Subject: [PATCH 6/8] MSVC port, part 6: File name handling like with mingw. * info/util.h (fncmp): Declare as a function on native Windows. * info/util.c (fncmp): Define on native Windows. --- info/util.c | 2 +- info/util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/info/util.c b/info/util.c index bbd6ea369c..d4fbca6940 100644 --- a/info/util.c +++ b/info/util.c @@ -416,7 +416,7 @@ text_buffer_printf (struct text_buffer *buf, const char *format, ...) return n; } -#if defined(__MSDOS__) || defined(__MINGW32__) +#if defined(__MSDOS__) || defined(_WIN32) /* Cannot use FILENAME_CMP here, since that does not consider forward- and back-slash characters equal. */ int diff --git a/info/util.h b/info/util.h index 461d0979bd..a615b37a0c 100644 --- a/info/util.h +++ b/info/util.h @@ -67,7 +67,7 @@ size_t text_buffer_printf (struct text_buffer *buf, const char *format, ...); #define text_buffer_base(buf) ((buf)->base) #define text_buffer_off(buf) ((buf)->off) -#if defined(__MSDOS__) || defined(__MINGW32__) +#if defined(__MSDOS__) || defined(_WIN32) int fncmp (const char *fn1, const char *fn2); #else # define fncmp(s,t) strcmp(s,t) -- 2.34.1