Skip to content

Commit 4a517d5

Browse files
authored
Merge pull request #35 from src-d/windows-build-fix
Fix building with MSVC 2017
2 parents 7e88eac + c43cc2f commit 4a517d5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cpuid.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#pragma once
22

33
#ifdef _WIN32
4+
#ifdef _MSC_VER
5+
#include<intrin.h>
6+
#endif
47
#define CPUID(info, x) __cpuidex(info, x, 0)
58
#else
69
#include <cpuid.h>

0 commit comments

Comments
 (0)