strptime: Fix C++ test error on mingw.
[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 arg-nonnull
12 c++defs
13 warn-on-use
14 stddef
15
16 configure.ac:
17 gl_HEADER_TIME_H
18
19 Makefile.am:
20 BUILT_SOURCES += time.h
21
22 # We need the following in order to create <time.h> when the system
23 # doesn't have one that works with the given compiler.
24 time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
25         $(AM_V_GEN)rm -f $@-t $@ && \
26         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
27           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
30               -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
31               -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
32               -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
33               -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
34               -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
35               -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \
36               -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
37               -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
38               -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
39               -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
40               -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
41               -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
42               -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
43               -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
44               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
45               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
46               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
47               < $(srcdir)/time.in.h; \
48         } > $@-t && \
49         mv $@-t $@
50 MOSTLYCLEANFILES += time.h time.h-t
51
52 Include:
53 <time.h>
54
55 License:
56 LGPLv2+
57
58 Maintainer:
59 all