Skip to content

Commit

Permalink
Fix building on windows-x86 if clang already includes
Browse files Browse the repository at this point in the history
[D101338](https://reviews.llvm.org/D101338) landed in 2021, so clang16 should have it
  • Loading branch information
georgthegreat authored and terrelln committed Apr 1, 2024
1 parent e3566d6 commit 72c16b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ MEM_STATIC ZSTD_cpuid_t ZSTD_cpuid(void) {
U32 f7b = 0;
U32 f7c = 0;
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))
#if !defined(__clang__)
#if !defined(__clang__) || __clang_major__ >= 16
int reg[4];
__cpuid((int*)reg, 0);
{
Expand Down

0 comments on commit 72c16b1

Please sign in to comment.