summaryrefslogtreecommitdiffstats
path: root/lib/lz4.c
diff options
context:
space:
mode:
authorremittor <remittor@gmail.com>2020-10-06 14:16:43 (GMT)
committerremittor <remittor@gmail.com>2020-10-06 14:16:43 (GMT)
commitc4792cdfa917911bea91ebf245e02a1a4b9038c6 (patch)
tree2a73bd23def58a1004716541dae677c71e9a9a4d /lib/lz4.c
parentd1414fd5524a70d47656e0fceb58ee10dc573b75 (diff)
downloadlz4-c4792cdfa917911bea91ebf245e02a1a4b9038c6.zip
lz4-c4792cdfa917911bea91ebf245e02a1a4b9038c6.tar.gz
lz4-c4792cdfa917911bea91ebf245e02a1a4b9038c6.tar.bz2
Fix: The "inline" specifier do not use for LZ4_wildCopy8 and LZ4_wildCopy32
This problem was reproduced on MSVC 2015 (32-bit). Both functions were called using the operator "call".
Diffstat (limited to 'lib/lz4.c')
-rw-r--r--lib/lz4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 0290ea2..1d08e10 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -162,7 +162,7 @@
# define LZ4_FORCE_O2_INLINE_GCC_PPC64LE __attribute__((optimize("O2"))) LZ4_FORCE_INLINE
#else
# define LZ4_FORCE_O2_GCC_PPC64LE
-# define LZ4_FORCE_O2_INLINE_GCC_PPC64LE static
+# define LZ4_FORCE_O2_INLINE_GCC_PPC64LE LZ4_FORCE_INLINE
#endif
#if (defined(__GNUC__) && (__GNUC__ >= 3)) || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 800)) || defined(__clang__)