From: Mark Mitchell Date: Tue, 29 Mar 2005 01:10:31 +0000 (+0000) Subject: * libiberty.h (ffs): Declare, if necessary. X-Git-Tag: misc/cutover-cvs2svn~4635 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f78c1452ea50e6f950bc0d6f3d64ba43be1cf021;p=thirdparty%2Fgcc.git * libiberty.h (ffs): Declare, if necessary. From-SVN: r97147 --- diff --git a/include/ChangeLog b/include/ChangeLog index 379b0850413e..ddb2b1a45a4c 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2005-03-28 Mark Mitchell + + * libiberty.h (ffs): Declare, if necessary. + 2005-03-27 Gabriel Dos Reis * xregex2.h (_RE_ARGS): Remove definition and uses. diff --git a/include/libiberty.h b/include/libiberty.h index a06421037268..f1d4f464afbe 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -138,6 +138,13 @@ extern char *libiberty_concat_ptr; extern int fdmatch (int fd1, int fd2); +/* Return the position of the first bit set in the argument. */ +/* Prototypes vary from system to system, so we only provide a + prototype on systems where we know that we need it. */ +#if defined (HAVE_DECL_FFS) && !HAVE_DECL_FFS +extern int ffs(int); +#endif + /* Get the working directory. The result is cached, so don't call chdir() between calls to getpwd(). */