[CRT] Fix __forceinline definition for clang

This commit is contained in:
Jérôme Gardou 2020-11-06 17:27:32 +01:00 committed by Jérôme Gardou
parent f96e47db43
commit 3936c3f19e

View file

@ -193,7 +193,7 @@ allow GCC to optimize away some EH unwind code, at least in DW2 case. */
# ifdef __cplusplus
# define __forceinline inline __attribute__((__always_inline__))
# else
# if ( __MINGW_GNUC_PREREQ(4, 3) && __STDC_VERSION__ >= 199901L)
# if (( __MINGW_GNUC_PREREQ(4, 3) && __STDC_VERSION__ >= 199901L) || defined(__clang__))
# define __forceinline extern inline __attribute__((__always_inline__,__gnu_inline__))
# else
# define __forceinline extern __inline__ __attribute__((__always_inline__))