Skip to content

Commit

Permalink
headers: Skip defining __cpuidex for Clang 17
Browse files Browse the repository at this point in the history
Just like GCC 11 got this function, Clang 17 also got an implementation
of it - thus skip our version to avoid conflicts.

Signed-off-by: Martin Storsjö <martin@martin.st>
  • Loading branch information
mstorsjo committed May 25, 2023
1 parent 3ffa222 commit 2b6c924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mingw-w64-headers/include/psdk_inc/intrin-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ void __cpuid(int CPUInfo[4], int InfoType) {
#define __INTRINSIC_DEFINED___cpuid
#endif /* __INTRINSIC_PROLOG */

#if (!defined(__GNUC__) || __GNUC__ < 11)
#if (!defined(__GNUC__) || __GNUC__ < 11) && (!defined(__clang__) || __clang_major__ < 17)
#if __INTRINSIC_PROLOG(__cpuidex)
void __cpuidex(int CPUInfo[4], int, int);
#if !__has_builtin(__cpuidex)
Expand Down

0 comments on commit 2b6c924

Please sign in to comment.