From 4b1fb6c3be9f810c1ddceddc6536f7687c23197d Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 29 Sep 2020 02:15:18 +0200 Subject: replace compile_guard with umbrella header for arch --- lib/arch.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/arch.h (limited to 'lib/arch.h') diff --git a/lib/arch.h b/lib/arch.h new file mode 100644 index 0000000..fc86cad --- /dev/null +++ b/lib/arch.h @@ -0,0 +1,13 @@ +/* Copyright (c) 2020 Johannes Stoelp */ + +#pragma once + +#if !defined(linux) +static_assert(false, "Matcha Threads only supported on Linux!"); +#endif + +#if defined(__x86_64__) || defined(__amd64__) +# include "arch/x86_64/api.h" +#else +static_assert(false, "Matcha Threads only supported on x86_64!"); +#endif -- cgit v1.2.3