[libc++] Fix compilation error on platforms that don't implement std::tm
authorLouis Dionne <ldionne@apple.com>
Thu, 8 Sep 2022 13:53:49 +0000 (09:53 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Thu, 8 Sep 2022 22:10:53 +0000 (18:10 -0400)
commitd529e8110bdf49ca0f00fe4bfbae7db64a49f70c
tree4cfcc95178d2180f7fce4911bad6c4d1d113e938
parent48203b327d8ddf2cb785a1ac30b3cd9fa1e54b44
[libc++] Fix compilation error on platforms that don't implement std::tm

Instead of mentioning tm directly in the definition of __convert_to_tm,
take it as a template argument. As a fly-by also fix incorrect Lit feature
(should have been no-localization instead of libcpp-has-no-localization).

Differential Revision: https://reviews.llvm.org/D133490
libcxx/include/__chrono/convert_to_tm.h
libcxx/include/__chrono/formatter.h
libcxx/test/std/time/time.cal/time.cal.day/time.cal.day.nonmembers/ostream.pass.cpp
libcxx/test/std/time/time.syn/formatter.day.pass.cpp