]> 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>
Wed, 14 Sep 2022 22:50:41 +0000 (00:50 +0200)
commite441260eab816e9b6d202fe7ac288ec2a7b72f34
tree66ac68a05f5a58cd0daac71852e6b84199f68222
parentd6f25832c0a02500602e44153e265e10a1d67ce4
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