diff options
author | Brad King <brad.king@kitware.com> | 2016-08-17 14:41:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-17 14:48:28 (GMT) |
commit | 481c9003fa41e75731bc463cdfa4310e91d5ea4c (patch) | |
tree | 99bedecf3a1e25b2e9f6a86978e16809c27d7d86 /Utilities/cmlibarchive/libarchive | |
parent | 67a7dcef45fef6172514d6df1bea3ca94a04735a (diff) | |
download | CMake-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/libarchive')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/xxhash.c | 5 |
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 /*************************************** |