Disable cat*() on CloudABI. Also make tiny cleanups.
authorEd Schouten <ed@nuxi.nl>
Wed, 11 Mar 2015 16:39:36 +0000 (16:39 +0000)
committerEd Schouten <ed@nuxi.nl>
Wed, 11 Mar 2015 16:39:36 +0000 (16:39 +0000)
commit12e012659616dc566f6a177b0309411e0c7d4ad6
tree7e355512bf6dabfb45bea08bb7ccf614fb4cfa39
parent5178125abd110ab0ab2a579d88dd2859bd0935ed
Disable cat*() on CloudABI. Also make tiny cleanups.

On a new platform that I am working on
(https://github.com/NuxiNL/cloudlibc) I am not implementing the
cat{open,close,gets}() API, just like Android, Newlib, etc.

Instead of adding yet another operating system name to the #ifs,
introduce _LIBCPP_HAS_CATOPEN in include/__config. Also adjust the code
to only pull in nl_types.h when _LIBCPP_HAS_CATOPEN is set. We only
needed this header for the cat*() API.

Differential Revision: http://reviews.llvm.org/D8163
Reviewed by: marshall

llvm-svn: 231937
libcxx/include/__config
libcxx/include/locale