]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Include windows.h in archive_entry.h
authorXiao-Long Chen <chenxiaolong@cxl.epac.to>
Sun, 14 Sep 2014 06:41:10 +0000 (02:41 -0400)
committerXiao-Long Chen <chenxiaolong@cxl.epac.to>
Sun, 14 Sep 2014 06:41:10 +0000 (02:41 -0400)
This fixes the following error when building with mingw-w64:

  error: unknown type name 'BY_HANDLE_FILE_INFORMATION'

libarchive/archive_entry.h

index dfba11b45fa4aee82303e7a6bcb28c5cd4c92cf9..c85b0e9db23cffbb2b9c92a02aec1884c6cd4ac3 100644 (file)
 #include <stddef.h>  /* for wchar_t */
 #include <time.h>
 
+#if defined(_WIN32)
+#include <windows.h>
+#endif
+
 /* Get a suitable 64-bit integer type. */
 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__)
 # define       __LA_INT64_T    __int64