summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAndreas Fankhauser (@tux-six)2022-05-30 16:13:08 +0200
committerAndreas Fankhauser (@tux-six)2022-05-30 16:13:08 +0200
commit3f8ac6551aa0f53fd14b216e97e79939635b8b82 (patch)
treed71d6b71cd5781692ca95fe938de630bd286e647 /src/common
parent4d54d900cd2cfb880b5cada3b9baef6a30a04332 (diff)
downloadbulk-ln-3f8ac6551aa0f53fd14b216e97e79939635b8b82.zip
bulk-ln-3f8ac6551aa0f53fd14b216e97e79939635b8b82.tar.gz
Add from existing sources after some cleanup.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/commonbase.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/common/commonbase.h b/src/common/commonbase.h
new file mode 100644
index 0000000..497d3fa
--- /dev/null
+++ b/src/common/commonbase.h
@@ -0,0 +1,23 @@
+
+/*
+ * common config for project. Here goes stuff like feature-test-macros etc.
+ *
+ * Every header file MUST include this file AS THE 1ST include.
+ */
+
+
+#define _POSIX_C_SOURCE 200809L
+
+
+#define STR_QUOT_IAHGEWIH(s) #s
+#define STR_QUOT(s) STR_QUOT_IAHGEWIH(s)
+
+#define STR_CAT(a, b) a ## b
+
+#ifndef likely
+# define likely(a) (a)
+#endif
+#ifndef unlikely
+# define unlikely(a) (a)
+#endif
+