Commit 37a682e5 authored by Ariadne Conill's avatar Ariadne Conill 🐰
Browse files

apk_database: move APK_DEFAULT_ARCH to headers so that we can use it in version().

parent 1c54d136
...@@ -18,6 +18,16 @@ ...@@ -18,6 +18,16 @@
#include "apk_package.h" #include "apk_package.h"
#include "apk_io.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_MAX_REPOS 32
#define APK_CACHE_CSUM_BYTES 4 #define APK_CACHE_CSUM_BYTES 4
......
...@@ -34,14 +34,6 @@ ...@@ -34,14 +34,6 @@
#include "apk_archive.h" #include "apk_archive.h"
#include "apk_print.h" #include "apk_print.h"
#if defined(__x86_64__)
#define APK_DEFAULT_ARCH "x86_64"
#elif defined(__i386__)
#define APK_DEFAULT_ARCH "x86"
#else
#define APK_DEFAULT_ARCH "noarch"
#endif
enum { enum {
APK_DISALLOW_RMDIR = 0, APK_DISALLOW_RMDIR = 0,
APK_ALLOW_RMDIR = 1 APK_ALLOW_RMDIR = 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment