apk_database: move APK_DEFAULT_ARCH to headers so that we can use it in version().
parent
1c54d13614
commit
37a682e560
|
@ -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
|
||||
|
||||
|
|
|
@ -34,14 +34,6 @@
|
|||
#include "apk_archive.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 {
|
||||
APK_DISALLOW_RMDIR = 0,
|
||||
APK_ALLOW_RMDIR = 1
|
||||
|
|
Loading…
Reference in New Issue