Skip to content

Commit b043349

Browse files
committed
Fix MZ_FORCEINLINE define to work with GCC 4.7.1.
Using just __always_inline__ without inline results in several instances of "error: always_inline function might not be inlinable".
1 parent e398a72 commit b043349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/miniz.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ typedef unsigned char mz_validate_uint64[sizeof(mz_uint64)==8 ? 1 : -1];
391391
#ifdef _MSC_VER
392392
#define MZ_FORCEINLINE __forceinline
393393
#elif defined(__GNUC__)
394-
#define MZ_FORCEINLINE __attribute__((__always_inline__))
394+
#define MZ_FORCEINLINE inline __attribute__((__always_inline__))
395395
#else
396396
#define MZ_FORCEINLINE
397397
#endif

0 commit comments

Comments
 (0)