stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
[gnulib.git] / modules / stddef
blob91d6bac6623f934f14827263a92307b142528b69
1 Description:
2 A <stddef.h> that works around platform issues.
4 Files:
5 lib/stddef.in.h
6 m4/stddef_h.m4
7 m4/wchar_t.m4
9 Depends-on:
10 include_next
11 extensions
13 configure.ac:
14 gl_STDDEF_H
16 Makefile.am:
17 BUILT_SOURCES += $(STDDEF_H)
19 # We need the following in order to create <stddef.h> when the system
20 # doesn't have one that works with the given compiler.
21 if GL_GENERATE_STDDEF_H
22 stddef.h: stddef.in.h $(top_builddir)/config.status
23         $(AM_V_GEN)rm -f $@-t $@ && \
24         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
25           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
26               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
27               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
28               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
29               -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
30               -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \
31               -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
32               -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
33               < $(srcdir)/stddef.in.h; \
34         } > $@-t && \
35         mv $@-t $@
36 else
37 stddef.h: $(top_builddir)/config.status
38         rm -f $@
39 endif
40 MOSTLYCLEANFILES += stddef.h stddef.h-t
42 Include:
43 <stddef.h>
45 License:
46 LGPLv2+
48 Maintainer:
49 all