diff options
author | Bruno Haible <bruno@clisp.org> | 2017-04-30 13:32:40 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-04-30 19:26:37 +0200 |
commit | 16778a29111e48e1f8f4afa07f77cfc3651c6040 (patch) | |
tree | b1f9425a4fd2df2b0526151c36efa5d7f4b8ac64 /modules | |
parent | 8c59a9eb5cdd49322c399601bcbee630321164de (diff) | |
download | gnulib-16778a29111e48e1f8f4afa07f77cfc3651c6040.tar.gz |
localtime: New module.
* lib/time.in.h (localtime): Declare also if requested by module
'localtime'.
* lib/localtime.c: New file.
* m4/localtime.m4: New file.
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
* modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
* modules/localtime: New file.
* doc/posix-functions/localtime.texi: Mention the new module.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/localtime | 27 | ||||
-rw-r--r-- | modules/time | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/modules/localtime b/modules/localtime new file mode 100644 index 0000000000..5da46a9550 --- /dev/null +++ b/modules/localtime @@ -0,0 +1,27 @@ +Description: +localtime() function: convert time to broken-down local time. + +Files: +lib/localtime.c +m4/localtime.m4 + +Depends-on: +time + +configure.ac: +gl_FUNC_LOCALTIME +if test $REPLACE_LOCALTIME = 1; then + AC_LIBOBJ([localtime]) +fi +gl_TIME_MODULE_INDICATOR([localtime]) + +Makefile.am: + +Include: +<time.h> + +License: +LGPLv2+ + +Maintainer: +all diff --git a/modules/time b/modules/time index eff6132fd2..4bbfbd4578 100644 --- a/modules/time +++ b/modules/time @@ -32,6 +32,7 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $( -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ -e 's/@''GNULIB_CTIME''@/$(GNULIB_CTIME)/g' \ -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \ + -e 's/@''GNULIB_LOCALTIME''@/$(GNULIB_LOCALTIME)/g' \ -e 's/@''GNULIB_MKTIME''@/$(GNULIB_MKTIME)/g' \ -e 's/@''GNULIB_NANOSLEEP''@/$(GNULIB_NANOSLEEP)/g' \ -e 's/@''GNULIB_STRPTIME''@/$(GNULIB_STRPTIME)/g' \ |