summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-17 14:41:13 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-17 14:48:28 (GMT)
commit481c9003fa41e75731bc463cdfa4310e91d5ea4c (patch)
tree99bedecf3a1e25b2e9f6a86978e16809c27d7d86 /Utilities/cmlibarchive
parent67a7dcef45fef6172514d6df1bea3ca94a04735a (diff)
downloadCMake-481c9003fa41e75731bc463cdfa4310e91d5ea4c.zip
CMake-481c9003fa41e75731bc463cdfa4310e91d5ea4c.tar.gz
CMake-481c9003fa41e75731bc463cdfa4310e91d5ea4c.tar.bz2
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.
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r--Utilities/cmlibarchive/libarchive/xxhash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Utilities/cmlibarchive/libarchive/xxhash.c b/Utilities/cmlibarchive/libarchive/xxhash.c
index d7f8e96..262fecb 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 <stdlib.h>
-#include <string.h>
#include "archive_platform.h"
#include "archive_xxhash.h"
+#include <stdlib.h>
+#include <string.h>
+
#ifdef HAVE_LIBLZ4
/***************************************