1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00
Files
gnulib/modules/stdcountof-h
Bruno Haible 073f998968 stdcountof-h: Tweaks.
Reported by Alejandro Colomar <alx@kernel.org>.

* lib/stdcountof.in.h (countof): Parenthesize better.
* modules/stdcountof-h (Description): To appear in C2y, not C23.
2025-06-03 00:48:06 +02:00

40 lines
778 B
Plaintext

Description:
An <stdcountof.h> that is like C2y.
Files:
lib/stdcountof.in.h
m4/stdcountof_h.m4
Depends-on:
gen-header
configure.ac:
gl_STDCOUNTOF_H
gl_CONDITIONAL_HEADER([stdcountof.h])
AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += $(STDCOUNTOF_H)
# We need the following in order to create <stdcountof.h> when the system
# doesn't have one that works with the given compiler.
if GL_GENERATE_STDCOUNTOF_H
stdcountof.h: stdcountof.in.h $(top_builddir)/config.status
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
$(gl_V_at)$(SED_HEADER_STDOUT) $(srcdir)/stdcountof.in.h > $@-t
$(AM_V_at)mv $@-t $@
else
stdcountof.h: $(top_builddir)/config.status
rm -f $@
endif
MOSTLYCLEANFILES += stdcountof.h stdcountof.h-t
Include:
<stdcountof.h>
License:
LGPLv2+
Maintainer:
Bruno Haible