summaryrefslogtreecommitdiff
path: root/lib/xxhash.c
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2018-02-08 09:15:07 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2018-02-08 09:15:27 -0500
commitc4671be550fa65241c46e9e3a9214d227fbfe27f (patch)
tree533fca761a2b19e41a95d158a874c524a2e68510 /lib/xxhash.c
parentea25250c990769a01606dacb4149d52466b1638e (diff)
downloadlz4-c4671be550fa65241c46e9e3a9214d227fbfe27f.tar.gz
lz4-c4671be550fa65241c46e9e3a9214d227fbfe27f.tar.bz2
lz4-c4671be550fa65241c46e9e3a9214d227fbfe27f.zip
intel: do not use __attribute__((packed)) on Windows
On Windows, the Intel compiler is closer to MSVC rather than GCC and does not support the GCC attribute syntax. Fixes #468
Diffstat (limited to 'lib/xxhash.c')
-rw-r--r--lib/xxhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xxhash.c b/lib/xxhash.c
index bcf1f1d..3fc97fd 100644
--- a/lib/xxhash.c
+++ b/lib/xxhash.c
@@ -52,7 +52,7 @@
#ifndef XXH_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */
# if defined(__GNUC__) && ( defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) )
# define XXH_FORCE_MEMORY_ACCESS 2
-# elif defined(__INTEL_COMPILER) || \
+# elif (defined(__INTEL_COMPILER) && !defined(_WIN32)) || \
(defined(__GNUC__) && ( defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__) ))
# define XXH_FORCE_MEMORY_ACCESS 1
# endif