diff options
author | Brad King <brad.king@kitware.com> | 2022-02-16 12:40:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-02-16 12:41:49 (GMT) |
commit | 85cdeefc37be94b76d6cd630cd2b40e9b04db2bc (patch) | |
tree | 39adc19a786d7d39debc3bc1ea5adc8d56797a4d /Utilities/cmlibarchive | |
parent | b3644e460fc8556c24c2a520129a16be04d4f2d4 (diff) | |
download | CMake-85cdeefc37be94b76d6cd630cd2b40e9b04db2bc.zip CMake-85cdeefc37be94b76d6cd630cd2b40e9b04db2bc.tar.gz CMake-85cdeefc37be94b76d6cd630cd2b40e9b04db2bc.tar.bz2 |
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.
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c | 3 | ||||
-rw-r--r-- | 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 <stdint.h> #include <string.h> #include <stdio.h> -#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 <stdlib.h> #include <string.h> #include <stdio.h> @@ -21,7 +23,6 @@ #include <omp.h> #endif -#include "archive_platform.h" #include "archive_blake2.h" #include "archive_blake2_impl.h" |