aboutsummaryrefslogtreecommitdiffhomepage
path: root/hostconfig.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-17 20:32:10 +0100
committerlemon <lsof@mailbox.org>2025-12-17 20:32:23 +0100
commit4545928179837c75ab1357b77e5723a4fdb60b98 (patch)
tree5d864232cda0ff32f1d53d7a5a01daeb53b90873 /hostconfig.h
parent8b486bc9a1333d368538f91e046bf30f68798ce3 (diff)
nicer defaults and facilities for cross-compilation
Diffstat (limited to 'hostconfig.h')
-rw-r--r--hostconfig.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/hostconfig.h b/hostconfig.h
new file mode 100644
index 0000000..b333ad2
--- /dev/null
+++ b/hostconfig.h
@@ -0,0 +1,27 @@
+#ifndef HOST_CONFIG_H
+#define HOST_CONFIG_H
+
+#if defined __x86_64 || defined __x86_64__
+#define HOST_ARCH ISx86_64
+#else
+#define HOST_ARCH ISxxx
+#endif
+
+#if defined __linux__
+#define HOST_OS OSlinux
+#else
+#define HOST_OS OSunknown
+#endif
+
+#if defined __linux__
+#define HOST_ABI ABIgnu
+#else
+#define HOST_ABI ABInone
+#endif
+
+#ifndef HOST_INCLUDE_DIRS
+#define HOST_INCLUDE_DIRS "/usr/include", "/usr/local/include"
+#endif
+
+#endif
+