cogl-util: Add an internal wrapper for the ffs function
authorNeil Roberts <neil@linux.intel.com>
Fri, 17 Dec 2010 16:06:10 +0000 (16:06 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 10 Jan 2011 16:55:00 +0000 (16:55 +0000)
commitb3058c097dfb834018ab3598d002a7be595e78ff
tree9ba7f7a3c5a463aaee6898c550075cf377beae4e
parent91c16023066b3d71ed569e0dcb97bdd0fe8b4667
cogl-util: Add an internal wrapper for the ffs function

The ffs function is defined in C99 so if we want to use it in Cogl we
need to provide a fallback for MSVC. This adds a configure check for
the function and then a fallback using a while loop if it is not
available.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2491
clutter/cogl/cogl/cogl-util.c
clutter/cogl/cogl/cogl-util.h
configure.ac