mirror of
https://github.com/microsoft/DirectXMath
synced 2024-11-24 05:10:13 +00:00
Fix for MINGW cpuid.h being called instead of intrin.h. (#176)
This commit is contained in:
parent
cf4b7b25e8
commit
4def0cb7d3
@ -114,11 +114,15 @@
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4987)
|
||||
// C4987: Off by default noise
|
||||
#endif
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#if (defined(__clang__) || defined(__GNUC__)) && (__x86_64__ || __i386__)
|
||||
#if (defined(__clang__) || defined(__GNUC__)) && (__x86_64__ || __i386__) && !defined(__MINGW32__)
|
||||
#include <cpuid.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user