summaryrefslogtreecommitdiff
path: root/libarchive/archive_entry.h
diff options
context:
space:
mode:
authorNiLuJe <ninuje@gmail.com>2013-12-22 23:05:24 +0100
committerNiLuJe <ninuje@gmail.com>2013-12-22 23:05:24 +0100
commit819f5c58a8a806f2ae683c8d7b15e4886add30d6 (patch)
treeeb9ff3790c89527e05188e493828d297550210d5 /libarchive/archive_entry.h
parentcd1740912b18f748a4f9b491a32b44c1712a7478 (diff)
downloadlibarchive-819f5c58a8a806f2ae683c8d7b15e4886add30d6.tar.gz
Revert "Remove unnecessary windows.h include"
This reverts commit e6d1e13b2880ab0e6166e5ed168df7e6e0de943b. We do need this (for the CLI tools). Fixes a build failure on MinGW: CC tar/bsdtar-bsdtar.o In file included from tar/bsdtar_platform.h:62:0, from tar/bsdtar.c:26: ./libarchive/archive_entry.h:250:64: error: unknown type name 'BY_HANDLE_FILE_INFORMATION' __LA_DECL void archive_entry_copy_bhfi(struct archive_entry *, BY_HANDLE_FILE_INFORMATION *); ^
Diffstat (limited to 'libarchive/archive_entry.h')
-rw-r--r--libarchive/archive_entry.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libarchive/archive_entry.h b/libarchive/archive_entry.h
index 2f7fc6d1..590b501a 100644
--- a/libarchive/archive_entry.h
+++ b/libarchive/archive_entry.h
@@ -43,6 +43,10 @@
#include <stddef.h> /* for wchar_t */
#include <time.h>
+#if defined(_WIN32) && !defined(__CYGWIN__)
+#include <windows.h>
+#endif
+
/* Get a suitable 64-bit integer type. */
#if defined(_WIN32) && !defined(__CYGWIN__)
# define __LA_INT64_T __int64