Avoid some "gcc -pedantic" warnings.
[gnulib.git] / modules / stdlib
1 Description:
2 A GNU-like <stdlib.h>.
3
4 Files:
5 lib/stdlib.in.h
6 m4/stdlib_h.m4
7
8 Depends-on:
9 include_next
10 link-warning
11 unistd
12
13 configure.ac:
14 gl_STDLIB_H
15
16 Makefile.am:
17 BUILT_SOURCES += stdlib.h
18
19 # We need the following in order to create <stdlib.h> when the system
20 # doesn't have one that works with the given compiler.
21 stdlib.h: stdlib.in.h
22         rm -f $@-t $@
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
24           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
25               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26               -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
27               -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
28               -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
29               -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
30               -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
31               -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
32               -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
33               -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
34               -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
35               -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
36               -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
37               -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
38               -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \
39               -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
40               -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \
41               -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
42               -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \
43               -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
44               -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
45               -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
46               -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
47               -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
48               -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
49               -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
50               -e 's|@''VOID_UNSETENV''@|$(VOID_UNSETENV)|g' \
51               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
52               < $(srcdir)/stdlib.in.h; \
53         } > $@-t
54         mv $@-t $@
55 MOSTLYCLEANFILES += stdlib.h stdlib.h-t
56
57 Include:
58 #include <stdlib.h>
59
60 License:
61 LGPLv2+
62
63 Maintainer:
64 all