summaryrefslogtreecommitdiff
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-12 13:23:20 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-12 13:23:20 +0000
commita00247f57a1b263d6eace43f36547766566c1de1 (patch)
tree667e5163bbaf6c944987b540521a96e8e321f749 /include/ruby/missing.h
parentd80a859d98a86e201075156a2b2cc5fa91aa4e08 (diff)
* time.c (rb_big_abs_find_minbit): use ffs().
* configure.in: check ffs(). * missing/ffs.c: new file. * include/ruby/missing.h (ffs): declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r--include/ruby/missing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index e4ac07018fb..18dabaa5b3e 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -159,6 +159,10 @@ RUBY_EXTERN size_t strlcpy(char *, const char*, size_t);
RUBY_EXTERN size_t strlcat(char *, const char*, size_t);
#endif
+#ifndef HAVE_FFS
+RUBY_EXTERN int ffs(int);
+#endif
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */