2 A <stddef.h> that works around platform issues.
16 gl_STDDEF_H_REQUIRE_DEFAULTS
17 gl_CONDITIONAL_HEADER([stddef.h])
21 BUILT_SOURCES += $(STDDEF_H)
23 # We need the following in order to create <stddef.h> when the system
24 # doesn't have one that works with the given compiler.
25 if GL_GENERATE_STDDEF_H
26 stddef.h: stddef.in.h $(top_builddir)/config.status
27 @NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
28 $(gl_V_at)$(SED_HEADER_STDOUT) \
29 -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
30 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
32 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
33 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
34 -e 's|@''NULLPTR_T_NEEDS_STDDEF''@|$(NULLPTR_T_NEEDS_STDDEF)|g' \
35 -e 's|@''STDDEF_NOT_IDEMPOTENT''@|$(STDDEF_NOT_IDEMPOTENT)|g' \
36 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
37 -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \
38 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
39 $(srcdir)/stddef.in.h > $@-t
42 stddef.h: $(top_builddir)/config.status
45 MOSTLYCLEANFILES += stddef.h stddef.h-t