From c4792cdfa917911bea91ebf245e02a1a4b9038c6 Mon Sep 17 00:00:00 2001 From: remittor Date: Tue, 6 Oct 2020 17:16:43 +0300 Subject: 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". --- lib/lz4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__) -- cgit v1.2.3