LZ4.c : changed inline to "static inline" to comply with limitations from GCC/LLVM combination under OS-X.

git-svn-id: https://lz4.googlecode.com/svn/trunk@74 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
This commit is contained in:
yann.collet.73@gmail.com 2012-08-08 13:02:45 +00:00
parent 19a078b132
commit 4e11dc62ba

8
lz4.c
View File

@ -250,7 +250,7 @@ struct refTables
//****************************
#if LZ4_ARCH64
inline int LZ4_NbCommonBytes (register U64 val)
static inline int LZ4_NbCommonBytes (register U64 val)
{
#if defined(LZ4_BIG_ENDIAN)
#if defined(_MSC_VER) && !defined(LZ4_FORCE_SW_BITCOUNT)
@ -282,7 +282,7 @@ inline int LZ4_NbCommonBytes (register U64 val)
#else
inline int LZ4_NbCommonBytes (register U32 val)
static inline int LZ4_NbCommonBytes (register U32 val)
{
#if defined(LZ4_BIG_ENDIAN)
#if defined(_MSC_VER) && !defined(LZ4_FORCE_SW_BITCOUNT)
@ -325,7 +325,7 @@ inline int LZ4_NbCommonBytes (register U32 val)
// If it cannot achieve it, compression will stop, and result of the function will be zero.
// return : the number of bytes written in buffer 'dest', or 0 if the compression fails
inline int LZ4_compressCtx(void** ctx,
static inline int LZ4_compressCtx(void** ctx,
const char* source,
char* dest,
int isize,
@ -490,7 +490,7 @@ _last_literals:
#define HASH64KTABLESIZE (1U<<HASHLOG64K)
#define LZ4_HASH64K_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8)-HASHLOG64K))
#define LZ4_HASH64K_VALUE(p) LZ4_HASH64K_FUNCTION(A32(p))
inline int LZ4_compress64kCtx(void** ctx,
static inline int LZ4_compress64kCtx(void** ctx,
const char* source,
char* dest,
int isize,