forked from premiere/premiere-libtorrent
refactor in macro conditions for helper_getauxval to avoid unused function warning in android x86
This commit is contained in:
parent
3efb81e50c
commit
4bfa920fe7
|
@ -54,8 +54,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#define TORRENT_HAS_AUXV 0
|
#define TORRENT_HAS_AUXV 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if TORRENT_HAS_ARM && TORRENT_HAS_AUXV
|
||||||
#if defined(TORRENT_ANDROID) && TORRENT_HAS_AUXV
|
#if defined TORRENT_ANDROID
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
namespace {
|
namespace {
|
||||||
unsigned long int helper_getauxval(unsigned long int type)
|
unsigned long int helper_getauxval(unsigned long int type)
|
||||||
|
@ -67,10 +67,11 @@ unsigned long int helper_getauxval(unsigned long int type)
|
||||||
return pf_getauxval(type);
|
return pf_getauxval(type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif TORRENT_HAS_ARM && TORRENT_HAS_AUXV
|
#else // TORRENT_ANDROID
|
||||||
#include <sys/auxv.h>
|
#include <sys/auxv.h>
|
||||||
#define helper_getauxval getauxval
|
#define helper_getauxval getauxval
|
||||||
#endif
|
#endif
|
||||||
|
#endif // TORRENT_HAS_ARM && TORRENT_HAS_AUXV
|
||||||
|
|
||||||
namespace libtorrent { namespace aux {
|
namespace libtorrent { namespace aux {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue