aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-29 01:10:31 +0000
committerMark Mitchell <mark@codesourcery.com>2005-03-29 01:10:31 +0000
commite7bb21d1541aabb2efae839787e6b0599b00f111 (patch)
treed10731acadf1375b3e8289fa5ac89741e9147958 /include
parentae8e4c7381607eec27afd6d6de1e7496d4d5b760 (diff)
* libiberty.h (ffs): Declare, if necessary.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@97147 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/libiberty.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 379b0850413..ddb2b1a45a4 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-28 Mark Mitchell <mark@codesourcery.com>
+
+ * libiberty.h (ffs): Declare, if necessary.
+
2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
* xregex2.h (_RE_ARGS): Remove definition and uses.
diff --git a/include/libiberty.h b/include/libiberty.h
index a0642103726..f1d4f464afb 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(). */