summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-07-16 04:28:41 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2011-07-16 04:28:41 -0500
commit37a682e5606d1214f0209180d2a6e6b682382989 (patch)
treea3a936b811fc600cfd694991ffcffe7c8630fd43 /src/apk_database.h
parent1c54d1361455e6788a9556ad820de676b4512817 (diff)
downloadapk-tools-37a682e5606d1214f0209180d2a6e6b682382989.tar.gz
apk-tools-37a682e5606d1214f0209180d2a6e6b682382989.tar.bz2
apk-tools-37a682e5606d1214f0209180d2a6e6b682382989.tar.xz
apk-tools-37a682e5606d1214f0209180d2a6e6b682382989.zip
apk_database: move APK_DEFAULT_ARCH to headers so that we can use it in version().
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index b28a77b..e0c04ed 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -18,6 +18,16 @@
#include "apk_package.h"
#include "apk_io.h"
+/* default architecture for APK packages. */
+#if defined(__x86_64__)
+#define APK_DEFAULT_ARCH "x86_64"
+#elif defined(__i386__)
+#define APK_DEFAULT_ARCH "x86"
+#else
+#warning APK_DEFAULT_ARCH is not set for this architecture
+#define APK_DEFAULT_ARCH "noarch"
+#endif
+
#define APK_MAX_REPOS 32
#define APK_CACHE_CSUM_BYTES 4