From 7e884959880fc4ef8484fe941a45df0cc6e7a1c8 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 7 Jul 2012 21:54:05 +1000 Subject: [PATCH] Cope with missing ffsll() on various platforms. --- lrzip_private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lrzip_private.h b/lrzip_private.h index 92240b8..1b17e8b 100644 --- a/lrzip_private.h +++ b/lrzip_private.h @@ -126,6 +126,10 @@ extern int errno; #define unlikely(x) __builtin_expect(!!(x), 0) #define __maybe_unused __attribute__((unused)) +#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(ANDROID) || defined(__APPLE__) +# define ffsll __builtin_ffsll +#endif + typedef long long int i64; typedef uint32_t u32;