]> Savannah Git Hosting - gnulib.git/commit
utime-h: Modernize handling of 'struct utimbuf'.
authorBruno Haible <bruno@clisp.org>
Sat, 29 Apr 2017 23:26:05 +0000 (01:26 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 30 Apr 2017 08:30:58 +0000 (10:30 +0200)
commit127cc8158810518f7abb27777b649468d91fda8b
tree6d230fdb0000d6f353e02e7a9833685740aece1e
parent06464e83f20d6dc0c68d5fe074439a2d1d3e9ebb
utime-h: Modernize handling of 'struct utimbuf'.

* lib/utime.in.h: Include next <utime.h> if it exists.
(utimbuf): Define to _utimbuf on native Windows.
* m4/utime-h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
Set UTIME_H on native Windows.
(gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
* modules/utime-h (Depends-on): Add include_next.
(Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.

* lib/utimens.c (utimbuf): Remove fallback definition.
* m4/utimens.m4 (gl_UTIMENS): Don't require
gl_CHECK_TYPE_STRUCT_UTIMBUF.
* m4/utimbuf.m4: Remove file.
* modules/utimens (Files): Remove m4/utimbuf.m4.
ChangeLog
lib/utime.in.h
lib/utimens.c
m4/utimbuf.m4 [deleted file]
m4/utime_h.m4
m4/utimens.m4
modules/utime-h
modules/utimens