mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-27 11:54:24 +08:00
headers: Adjust __cpuidex availability for Clang
Clang 18.x was meant to implement __cpuidex (a version was merged during the development of Clang 17.x, but it was reverted and backed out before Clang 17.x was completed) - however it was never merged before Clang 18.x was branched after all. For further history of the earlier changes within mingw-w64, see0605217f5d
and2b6c924761
. Postpone this change to Clang 19 for now. This fixes building software that uses __cpuidex with Clang 18. Hopefully it can either be merged in Clang well in advance before Clang 19 gets branched, or this issue revisited again long before that. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
a2686dadeb
commit
a4c0c1d00d
@ -2023,7 +2023,7 @@ void __cpuid(int CPUInfo[4], int InfoType) {
|
||||
#define __INTRINSIC_DEFINED___cpuid
|
||||
#endif /* __INTRINSIC_PROLOG */
|
||||
|
||||
#if (!defined(__GNUC__) || __GNUC__ < 11) && (!defined(__clang__) || __clang_major__ < 18)
|
||||
#if (!defined(__GNUC__) || __GNUC__ < 11) && (!defined(__clang__) || __clang_major__ < 19)
|
||||
#if __INTRINSIC_PROLOG(__cpuidex)
|
||||
void __cpuidex(int CPUInfo[4], int, int);
|
||||
#if !__has_builtin(__cpuidex)
|
||||
|
Loading…
Reference in New Issue
Block a user