EHS/include/System/Architecture.h
2023-12-17 03:29:08 -08:00

11 lines
277 B
C

#pragma once
#if defined(_M_AMD64) || defined(_M_X64) || defined(__x86_64__)
#define LWE_LITTLE_ENDIAN
#define LWE_ARCH_X64
#elif defined(_M_ARM64) || defined(__aarch64__)
#define LWE_LITTLE_ENDIAN
#define LWE_ARCH_ARM64
#else
#error Unsupported architecture.
#endif