]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fix mingw windows build issue
authorChris Brown <77508021+peakschris@users.noreply.github.com>
Sat, 9 Aug 2025 19:32:55 +0000 (15:32 -0400)
committerChris Brown <77508021+peakschris@users.noreply.github.com>
Sat, 9 Aug 2025 19:32:55 +0000 (15:32 -0400)
libarchive/archive_read_support_format_rar.c

index 9b401c00ba346ce8050959d49716b3367e6534d4..12632a573a9f81397b536d3899b21edad407518c 100644 (file)
 #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