From 407d298c14fa349ff4c29e97504f8a8a70f2be9e Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 5 Nov 2018 18:32:42 +0100 Subject: [PATCH] Remove inline for c90 support --- miniz_tdef.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miniz_tdef.c b/miniz_tdef.c index e6b678c..a2c638a 100644 --- a/miniz_tdef.c +++ b/miniz_tdef.c @@ -738,13 +738,13 @@ static int tdefl_flush_block(tdefl_compressor *d, int flush) #if MINIZ_USE_UNALIGNED_LOADS_AND_STORES #ifdef MINIZ_UNALIGNED_USE_MEMCPY -static inline mz_uint16 TDEFL_READ_UNALIGNED_WORD(const mz_uint8* p) +static mz_uint16 TDEFL_READ_UNALIGNED_WORD(const mz_uint8* p) { mz_uint16 ret; memcpy(&ret, p, sizeof(mz_uint16)); return ret; } -static inline mz_uint16 TDEFL_READ_UNALIGNED_WORD2(const mz_uint16* p) +static mz_uint16 TDEFL_READ_UNALIGNED_WORD2(const mz_uint16* p) { mz_uint16 ret; memcpy(&ret, p, sizeof(mz_uint16)); @@ -854,7 +854,7 @@ static MZ_FORCEINLINE void tdefl_find_match(tdefl_compressor *d, mz_uint lookahe #if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN #ifdef MINIZ_UNALIGNED_USE_MEMCPY -static inline mz_uint32 TDEFL_READ_UNALIGNED_WORD32(const mz_uint8* p) +static mz_uint32 TDEFL_READ_UNALIGNED_WORD32(const mz_uint8* p) { mz_uint32 ret; memcpy(&ret, p, sizeof(mz_uint32));