Skip to content

Commit

Permalink
Fix MZ_FORCEINLINE define to work with GCC 4.7.1.
Browse files Browse the repository at this point in the history
Using just __always_inline__ without inline results in several instances
of "error: always_inline function might not be inlinable".
  • Loading branch information
jld committed Aug 29, 2012
1 parent e398a72 commit b043349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rt/miniz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ typedef unsigned char mz_validate_uint64[sizeof(mz_uint64)==8 ? 1 : -1];
#ifdef _MSC_VER
#define MZ_FORCEINLINE __forceinline
#elif defined(__GNUC__)
#define MZ_FORCEINLINE __attribute__((__always_inline__))
#define MZ_FORCEINLINE inline __attribute__((__always_inline__))
#else
#define MZ_FORCEINLINE
#endif
Expand Down

0 comments on commit b043349

Please sign in to comment.