bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* bitset: use AC_C_INLINE
@ 2020-07-03 10:19 Bruno Haible
  0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2020-07-03 10:19 UTC (permalink / raw)
  To: bug-gnulib

The files
  lib/bitset.h
  lib/bitset.c
  lib/bitset/array.c
  lib/bitset/list.c
  lib/bitset/table.c
  lib/bitset/vector.c
use 'static inline'. To prevent compilation errors with old compilers or with
"gcc -ansi" or such, configure needs to execute AC_C_INLINE.


2020-07-03  Bruno Haible  <bruno@clisp.org>

	bitset: Make sure the compiler does not barf on 'inline'.
	* modules/bitset (configure.ac): New section.

diff --git a/modules/bitset b/modules/bitset
index 20c6806..21cde24 100644
--- a/modules/bitset
+++ b/modules/bitset
@@ -24,6 +24,9 @@ gettext-h
 obstack
 xalloc
 
+configure.ac:
+AC_REQUIRE([AC_C_INLINE])
+
 Makefile.am:
 lib_SOURCES += bitset.c bitset/array.c bitset/stats.c \
   bitset/table.c bitset/list.c bitset/vector.c



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-03 10:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-03 10:19 bitset: use AC_C_INLINE Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).