aboutsummaryrefslogtreecommitdiff
path: root/lib/arch.h
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-09-29 02:15:18 +0200
committerjohannst <johannes.stoelp@gmail.com>2020-09-29 02:15:18 +0200
commit4b1fb6c3be9f810c1ddceddc6536f7687c23197d (patch)
tree40e7c9deba4a97dd2a81bd68ff7dc6f99d4b0805 /lib/arch.h
parentfc83627b14536d0b13b2dd751d09cecbea9db378 (diff)
downloadmatcha-threads-4b1fb6c3be9f810c1ddceddc6536f7687c23197d.tar.gz
matcha-threads-4b1fb6c3be9f810c1ddceddc6536f7687c23197d.zip
replace compile_guard with umbrella header for arch
Diffstat (limited to 'lib/arch.h')
-rw-r--r--lib/arch.h13
1 files changed, 13 insertions, 0 deletions
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