From: DRC Date: Thu, 1 Oct 2009 22:26:14 +0000 (+0000) Subject: Some systems (notably OS X Leopard) have fls() already, so rename ours to avoid conflict X-Git-Tag: v1.0.90~384 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=847575b6bb00a4cf7cc275898a6f6c50dbc70cad;p=tigervnc.git Some systems (notably OS X Leopard) have fls() already, so rename ours to avoid conflict git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3903 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/common/jpeg/jcdctmgr.c b/common/jpeg/jcdctmgr.c index 67f82280..156957ab 100644 --- a/common/jpeg/jcdctmgr.c +++ b/common/jpeg/jcdctmgr.c @@ -73,7 +73,7 @@ typedef my_fdct_controller * my_fdct_ptr; * Find the highest bit in an integer through binary search. */ LOCAL(int) -fls (UINT16 val) +flss (UINT16 val) { int bit; @@ -167,7 +167,7 @@ compute_reciprocal (UINT16 divisor, DCTELEM * dtbl) UDCTELEM c; int b, r; - b = fls(divisor) - 1; + b = flss(divisor) - 1; r = sizeof(DCTELEM) * 8 + b; fq = ((UDCTELEM2)1 << r) / divisor;