From 85cdeefc37be94b76d6cd630cd2b40e9b04db2bc Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 16 Feb 2022 07:40:05 -0500 Subject: libarchive: include archive_platform.h first in blake2s sources Move the inclusion added in 3.6.0 to be first. This is the libarchive convention in all other `.c` sources. It ensures that the configured `_WIN32_WINNT` value is defined before including any system headers. --- Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c | 3 ++- Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c b/Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c index b21a02b..93d3281 100644 --- a/Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c +++ b/Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c @@ -13,11 +13,12 @@ https://blake2.net. */ +#include "archive_platform.h" + #include #include #include -#include "archive_platform.h" #include "archive_blake2.h" #include "archive_blake2_impl.h" diff --git a/Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c b/Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c index f412c8e..b913a4d 100644 --- a/Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c +++ b/Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c @@ -13,6 +13,8 @@ https://blake2.net. */ +#include "archive_platform.h" + #include #include #include @@ -21,7 +23,6 @@ #include #endif -#include "archive_platform.h" #include "archive_blake2.h" #include "archive_blake2_impl.h" -- cgit v0.12