cpuid: defend against unknown architectures
This commit is contained in:
parent
8fc182ca8e
commit
7cb0c8f6d8
@ -29,7 +29,7 @@ namespace cruft::cpu {
|
||||
#if defined(PROCESSOR_AMD64)
|
||||
#include "cpuid/x86.hpp"
|
||||
#else
|
||||
#include "cpuid/none.hpp"
|
||||
#error "Unsupported CPU"
|
||||
#endif
|
||||
|
||||
|
||||
@ -37,6 +37,6 @@ namespace cruft::cpu {
|
||||
#if defined(PROCESSOR_AMD64)
|
||||
using native = x86;
|
||||
#else
|
||||
using native = none;
|
||||
#error "Unsupported CPU"
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user