From 481c9003fa41e75731bc463cdfa4310e91d5ea4c Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 17 Aug 2016 10:41:13 -0400 Subject: [PATCH] libarchive: Fix include order in xxhash.c We need to include `archive_platform.h` before any system headers in order to ensure that `_WIN32_WINNT` is defined early enough. --- Utilities/cmlibarchive/libarchive/xxhash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Utilities/cmlibarchive/libarchive/xxhash.c b/Utilities/cmlibarchive/libarchive/xxhash.c index d7f8e96de..262fecb30 100644 --- a/Utilities/cmlibarchive/libarchive/xxhash.c +++ b/Utilities/cmlibarchive/libarchive/xxhash.c @@ -29,12 +29,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. You can contact the author at : - xxHash source repository : http://code.google.com/p/xxhash/ */ -#include -#include #include "archive_platform.h" #include "archive_xxhash.h" +#include +#include + #ifdef HAVE_LIBLZ4 /***************************************