mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[CRT] Move __INTRIN_INLINE to mingw32.h to be available everywhere
Also use __attribute__((artificial)) for clang, too.
This commit is contained in:
@@ -244,6 +244,18 @@ allow GCC to optimize away some EH unwind code, at least in DW2 case. */
|
||||
#endif
|
||||
#endif /* DECLSPEC_HOTPATCH */
|
||||
|
||||
#ifndef __INTRIN_INLINE
|
||||
# define __INTRIN_INLINE extern __inline__ __attribute__((__always_inline__,__gnu_inline__,artificial))
|
||||
#endif
|
||||
|
||||
#ifndef HAS_BUILTIN
|
||||
# ifdef __clang__
|
||||
# define HAS_BUILTIN(x) __has_builtin(x)
|
||||
# else
|
||||
# define HAS_BUILTIN(x) 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
# define __mingw_ovr inline __cdecl
|
||||
#elif defined (__GNUC__)
|
||||
|
||||
@@ -30,23 +30,6 @@
|
||||
|
||||
#ifndef RC_INVOKED
|
||||
|
||||
#ifndef __INTRIN_INLINE
|
||||
# ifdef __clang__
|
||||
# define __ATTRIBUTE_ARTIFICIAL
|
||||
# else
|
||||
# define __ATTRIBUTE_ARTIFICIAL __attribute__((artificial))
|
||||
# endif
|
||||
# define __INTRIN_INLINE extern __inline__ __attribute__((__always_inline__,__gnu_inline__)) __ATTRIBUTE_ARTIFICIAL
|
||||
#endif
|
||||
|
||||
#ifndef HAS_BUILTIN
|
||||
# ifdef __clang__
|
||||
# define HAS_BUILTIN(x) __has_builtin(x)
|
||||
# else
|
||||
# define HAS_BUILTIN(x) 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
#define _SIZE_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
|
||||
Reference in New Issue
Block a user