1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-11-09 14:10:09 +00:00

Fix for MINGW cpuid.h being called instead of intrin.h. (#176)

This commit is contained in:
J. Peter Mugaas 2024-02-02 02:09:57 -05:00 committed by GitHub
parent cf4b7b25e8
commit 4def0cb7d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,11 +114,15 @@
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4987) #pragma warning(disable : 4987)
// C4987: Off by default noise // C4987: Off by default noise
#endif
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <intrin.h> #include <intrin.h>
#endif
#ifdef _MSC_VER
#pragma warning(pop) #pragma warning(pop)
#endif #endif
#if (defined(__clang__) || defined(__GNUC__)) && (__x86_64__ || __i386__) #if (defined(__clang__) || defined(__GNUC__)) && (__x86_64__ || __i386__) && !defined(__MINGW32__)
#include <cpuid.h> #include <cpuid.h>
#endif #endif