summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-16 07:40:05 -0500
committerBrad King <brad.king@kitware.com>2022-05-24 12:35:26 -0400
commitac5e524763de5890088b4398b124fd6fd734c234 (patch)
tree01185fa8107d380bbdfc73f9a9b0db2f83177b97
parentb93d8b17143b251c2de3ff9c202fb6f200090091 (diff)
downloadcmake-ac5e524763de5890088b4398b124fd6fd734c234.tar.gz
libarchive: include archive_platform.h first in blake2s sources
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.
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c2
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c b/Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c
index d92ffd0fc5..93d3281189 100644
--- a/Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c
+++ b/Utilities/cmlibarchive/libarchive/archive_blake2s_ref.c
@@ -13,6 +13,8 @@
https://blake2.net.
*/
+#include "archive_platform.h"
+
#include <stdint.h>
#include <string.h>
#include <stdio.h>
diff --git a/Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c b/Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c
index aef101084a..b913a4db65 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>