From: Xiao-Long Chen Date: Sun, 14 Sep 2014 06:41:10 +0000 (-0400) Subject: Include windows.h in archive_entry.h X-Git-Tag: v3.1.900a~210^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e16fd72f8dc3d797fec56d77807b1d1df0131e5c;p=thirdparty%2Flibarchive.git Include windows.h in archive_entry.h This fixes the following error when building with mingw-w64: error: unknown type name 'BY_HANDLE_FILE_INFORMATION' --- diff --git a/libarchive/archive_entry.h b/libarchive/archive_entry.h index dfba11b45..c85b0e9db 100644 --- a/libarchive/archive_entry.h +++ b/libarchive/archive_entry.h @@ -43,6 +43,10 @@ #include /* for wchar_t */ #include +#if defined(_WIN32) +#include +#endif + /* Get a suitable 64-bit integer type. */ #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__) # define __LA_INT64_T __int64