summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-16 12:40:05 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-24 16:35:26 (GMT)
commitac5e524763de5890088b4398b124fd6fd734c234 (patch)
tree01185fa8107d380bbdfc73f9a9b0db2f83177b97 /Utilities
parentb93d8b17143b251c2de3ff9c202fb6f200090091 (diff)
downloadCMake-ac5e524763de5890088b4398b124fd6fd734c234.zip
CMake-ac5e524763de5890088b4398b124fd6fd734c234.tar.gz
CMake-ac5e524763de5890088b4398b124fd6fd734c234.tar.bz2
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.
Diffstat (limited to 'Utilities')
-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 d92ffd0..93d3281 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 aef1010..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>