Fix: The "inline" specifier do not use for LZ4_wildCopy8 and LZ4_wildCopy32
authorremittor <remittor@gmail.com>
Tue, 6 Oct 2020 14:16:43 +0000 (17:16 +0300)
committerremittor <remittor@gmail.com>
Tue, 6 Oct 2020 14:16:43 +0000 (17:16 +0300)
This problem was reproduced on MSVC 2015 (32-bit). Both functions were called using the operator "call".

lib/lz4.c

index 0290ea27435e3ee8532cfa3991de4b3c2cc35dd5..1d08e109db56775a92fff052a06420a8c41ef8c9 100644 (file)
--- a/lib/lz4.c
+++ b/lib/lz4.c
 #  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__)