__cpuidex: explicit MSVC check, fix MinGW GCC 5.3 cross-compilation

This commit is contained in:
xiphon 2020-09-07 16:31:11 +00:00
parent 5ce5f4906c
commit 66c22813f6

View File

@ -30,7 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#if defined(_M_X64) || defined(__x86_64__) #if defined(_M_X64) || defined(__x86_64__)
#define HAVE_CPUID #define HAVE_CPUID
#ifdef _WIN32 #if defined(_MSC_VER)
#include <intrin.h> #include <intrin.h>
#define cpuid(info, x) __cpuidex(info, x, 0) #define cpuid(info, x) __cpuidex(info, x, 0)
#else //GCC #else //GCC