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:
parent
21a521361e
commit
736f91fad1
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user