[libc++] Move checks for newlib to actually work
authorMara Sophie Grosch <littlefox@lf-net.org>
Mon, 12 Apr 2021 18:19:51 +0000 (14:19 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 12 Apr 2021 18:20:36 +0000 (14:20 -0400)
commit8deaa4a1471dac19c717a320eec9956843a8c479
treebcafea2e50077e4ebbef7f54e0616ae4c352ded6
parent23ac9d1e6e4a0c1160cbc4825ff1006c26742b0a
[libc++] Move checks for newlib to actually work

The checks did not work in __config, since no header defining
`_NEWLIB_VERSION` was included before. This patch moves the two
checks for newlib to the headers that actually need it - and after
they already include relevant headers.

Differential Revision: https://reviews.llvm.org/D79888
libcxx/include/__config
libcxx/include/fstream
libcxx/include/locale