aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/common.h b/common.h
new file mode 100644
index 0000000..cb6a5fe
--- /dev/null
+++ b/common.h
@@ -0,0 +1,33 @@
+/* See LICENSE file for copyright and license details. */
+#include "libar2simplified.h"
+
+#include <ctype.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#include <libar2.h>
+
+
+#ifndef ALIGNOF
+# ifdef __STDC_VERSION__
+# if __STDC_VERSION__ >= 201112L
+# define ALIGNOF(X) _Alignof(X)
+# endif
+# endif
+#endif
+#ifndef ALIGNOF
+# ifdef __GNUC__
+# define ALIGNOF(X) __alignof__(X)
+# else
+# define ALIGNOF(X) sizeof(X)
+# endif
+#endif
+
+
+#ifndef FALLBACK_NPROC
+# define FALLBACK_NPROC 4
+#endif