From 5920627efa87dd819c3defcf8283f36a41edbd63 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 22 Dec 2013 23:13:14 +0100 Subject: [PATCH] Better fix. Restore e6d1e13b2880ab0e6166e5ed168df7e6e0de943b, and make sure that we include windows.h earlier for the CLI tools. --- libarchive/archive_entry.h | 4 ---- tar/bsdtar_platform.h | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/libarchive/archive_entry.h b/libarchive/archive_entry.h index 590b501a4..2f7fc6d1e 100644 --- a/libarchive/archive_entry.h +++ b/libarchive/archive_entry.h @@ -43,10 +43,6 @@ #include /* for wchar_t */ #include -#if defined(_WIN32) && !defined(__CYGWIN__) -#include -#endif - /* Get a suitable 64-bit integer type. */ #if defined(_WIN32) && !defined(__CYGWIN__) # define __LA_INT64_T __int64 diff --git a/tar/bsdtar_platform.h b/tar/bsdtar_platform.h index 45228f504..e73f9828b 100644 --- a/tar/bsdtar_platform.h +++ b/tar/bsdtar_platform.h @@ -42,6 +42,10 @@ #include "config.h" #endif +#if defined(_WIN32) && !defined(__CYGWIN__) +#include "bsdtar_windows.h" +#endif + /* Get a real definition for __FBSDID if we can */ #if HAVE_SYS_CDEFS_H #include @@ -125,8 +129,4 @@ #define __LA_DEAD #endif -#if defined(_WIN32) && !defined(__CYGWIN__) -#include "bsdtar_windows.h" -#endif - #endif /* !BSDTAR_PLATFORM_H_INCLUDED */ -- 2.47.2