]> Savannah Git Hosting - gnulib.git/commit
time: Fix compilation errors with clang/MSVC.
authorBruno Haible <bruno@clisp.org>
Wed, 14 Sep 2022 22:50:41 +0000 (00:50 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Sep 2022 19:21:43 +0000 (21:21 +0200)
commit0152675d8e6371279395606958a58b9d716c591e
tree4bb5441a2ce70f59cfdd4e6c3ef7e25c98c15b5b
parentdf043f4541e200bd232d1c17b3dd2bfc489ebdc7
time: Fix compilation errors with clang/MSVC.

* m4/time_h.m4 (gl_TIME_H): Test whether asctime_r and ctime_r are
declared.
* lib/time.in.h (asctime_r, ctime_r): Skip _GL_WARN_ON_USE invocations
when these functions are not declared.
ChangeLog
lib/time.in.h
m4/time_h.m4