From: Chris Brown <77508021+peakschris@users.noreply.github.com> Date: Sat, 9 Aug 2025 19:32:55 +0000 (-0400) Subject: fix mingw windows build issue X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=640c9feced2b7c3fd7bf25caff7a6ad1939f4ade;p=thirdparty%2Flibarchive.git fix mingw windows build issue --- diff --git a/libarchive/archive_read_support_format_rar.c b/libarchive/archive_read_support_format_rar.c index 9b401c00b..12632a573 100644 --- a/libarchive/archive_read_support_format_rar.c +++ b/libarchive/archive_read_support_format_rar.c @@ -154,7 +154,7 @@ #define UNP_BUFFER_SIZE (128 * 1024) /* Define this here for non-Windows platforms */ -#if !((defined(__WIN32__) || defined(_WIN32) || defined(__WIN32)) && !defined(__CYGWIN__)) +#if !((defined(__WIN32__) || defined(_WIN32) || defined(__WIN32)) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__MINGW64__)) #define FILE_ATTRIBUTE_DIRECTORY 0x10 #endif