From: SeokYeon Hwang Date: Thu, 22 Oct 2015 05:04:40 +0000 (+0900) Subject: hax-all: just use compiler's builtin ffsl() X-Git-Tag: TizenStudio_2.0_p2.3.2~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bd9e954868ce92dea87ebf6d14d743cfa278a7c;p=sdk%2Femulator%2Fqemu.git hax-all: just use compiler's builtin ffsl() Toolchains of some platforms don't have ffsl() function. To solve it, just use compiler's builtin ffsl(). Change-Id: I176aabe730b0bf8afbd5a5d9323e73b203855cdb Signed-off-by: SeokYeon Hwang --- diff --git a/target-i386/hax-all.c b/target-i386/hax-all.c index 3ca3981..f91706c 100644 --- a/target-i386/hax-all.c +++ b/target-i386/hax-all.c @@ -380,7 +380,9 @@ hax_region_del(MemoryListener *listener, MemoryRegionSection *section) /* currently we fake the dirty bitmap sync, always dirty */ // avoid implicit declaration warning on Windows -int ffsl(long value); +#ifndef ffsl +#define ffsl __builtin_ffsl +#endif static void hax_log_sync(MemoryListener *listener, MemoryRegionSection *section) { MemoryRegion *mr = section->mr;