1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[util] Add macro to determine CPU arch

This commit is contained in:
Joshua Ashton 2022-09-13 18:41:16 +01:00 committed by Joshie
parent 21a521361e
commit 736f91fad1

View File

@ -1,5 +1,16 @@
#pragma once
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)
#define DXVK_ARCH_X86
#if defined(__x86_64__) || defined(_M_X64)
#define DXVK_ARCH_X86_64
#endif
#elif defined(__aarch64__) || defined(_M_ARM64)
#define DXVK_ARCH_ARM64
#else
#error "Unknown CPU Architecture"
#endif
#ifndef _MSC_VER
#if defined(__WINE__) && defined(__clang__)
#pragma push_macro("_WIN32")