headers: Don't use the 'inline' attribute on Clang when targeting C89

Move the defined(__clang__) into the condition next to
__MINGW_GNUC_PREREQ(4, 3) (which doesn't trigger for clang, as clang
presents itself as GCC 4.2).

This fixes building with Clang in C89 mode where we can't use the
'inline' attribute as such, but need to use __inline__ instead.

(This doesn't trigger when building without optimizations, because
__NO_INLINE__ is defined in those cases.)

Signed-off-by: Martin Storsjö <martin@martin.st>
1 file changed