summaryrefslogtreecommitdiff
path: root/m4/count-one-bits.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-11-20 22:25:05 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-11-29 23:38:50 -0800
commitaa7a0991de0882f7e5c62def3c53eb738cc299d4 (patch)
treec17442ade5f00926c782365ff1fa112bd0b56332 /m4/count-one-bits.m4
parent82d259c28dd5be149c34e76d71e4368cc26c42fb (diff)
downloadgnulib-aa7a0991de0882f7e5c62def3c53eb738cc299d4.tar.gz
count-one-bits: better 'inline'
* lib/count-one-bits.c: New file. * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE): New macro. Replace all uses of 'static inline' with it. Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Do not require AC_C_INLINE. * modules/count-one-bits (Files, lib_SOURCES): Add lib/count-one-bits.c. (Depends-on): Add extern-inline.
Diffstat (limited to 'm4/count-one-bits.m4')
-rw-r--r--m4/count-one-bits.m45
1 files changed, 1 insertions, 4 deletions
diff --git a/m4/count-one-bits.m4 b/m4/count-one-bits.m4
index 884392ab1e..f42373a59c 100644
--- a/m4/count-one-bits.m4
+++ b/m4/count-one-bits.m4
@@ -1,4 +1,4 @@
-# count-one-bits.m4 serial 2
+# count-one-bits.m4 serial 3
dnl Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,4 @@ AC_DEFUN([gl_COUNT_ONE_BITS],
dnl We don't need (and can't compile) count_one_bits_ll
dnl unless the type 'unsigned long long int' exists.
AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
-
- dnl Prerequisites of lib/count-one-bits.h.
- AC_REQUIRE([AC_C_INLINE])
])