Avoid some "gcc -pedantic" warnings.
[gnulib.git] / modules / time
1 Description:
2 A more-standard <time.h>.
3
4 Files:
5 lib/time.in.h
6 m4/time_h.m4
7
8 Depends-on:
9 extensions
10 include_next
11
12 configure.ac:
13 gl_HEADER_TIME_H
14
15 Makefile.am:
16 BUILT_SOURCES += time.h
17
18 # We need the following in order to create <time.h> when the system
19 # doesn't have one that works with the given compiler.
20 time.h: time.in.h
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
23           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
24               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
25               -e 's|@NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
26               -e 's|@REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
27               -e 's|@REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
28               -e 's|@REPLACE_STRPTIME''@|$(REPLACE_STRPTIME)|g' \
29               -e 's|@REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
30               -e 's|@SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
31               -e 's|@TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
32               < $(srcdir)/time.in.h; \
33         } > $@-t
34         mv $@-t $@
35 MOSTLYCLEANFILES += time.h time.h-t
36
37 Include:
38 #include <time.h>
39
40 License:
41 LGPLv2+
42
43 Maintainer:
44 all