aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-01-19 11:16:49 +0000
committerAdam Tkac <atkac@redhat.com>2010-01-19 11:16:49 +0000
commitbc8c368018d45b4dc458abc1c03650377ebfe72c (patch)
tree6f387f4884da13556b6bdf8182cf8606d79d6f29
parent364c4007a649018ada0865f909bf78a5d74593ce (diff)
downloadtigervnc-bc8c368018d45b4dc458abc1c03650377ebfe72c.tar.gz
tigervnc-bc8c368018d45b4dc458abc1c03650377ebfe72c.zip
[Bugfix] Some systems (notably OS X Leopard) have fls() already, so rename
ours to avoid conflict (dcommander). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@3947 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--common/jpeg/jcdctmgr.c4
1 files changed, 2 insertions, 2 deletions
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;