From 4292443da28c19d36be1bf08dc01a83d870cb749 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 22 Feb 2017 09:59:30 +0100 Subject: [PATCH] [General] Ensure architecture is x86 --- src/STDInclude.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/STDInclude.cpp b/src/STDInclude.cpp index 7b06c170..8cbd4cb9 100644 --- a/src/STDInclude.cpp +++ b/src/STDInclude.cpp @@ -67,6 +67,10 @@ AssertSize(std::uint8_t, 1); // Ensure pointers are 4 bytes in size (32-bit) static_assert(sizeof(intptr_t) == 4 && sizeof(void*) == 4 && sizeof(size_t) == 4, "This doesn't seem to be a 32-bit environment!"); +#if !defined(_M_IX86) +#error "Invalid processor achritecture!" +#endif + extern "C" { // Disable telemetry data logging