[libcxx-commits] [libcxx] [libcxx] Re-include <osreldate.h> in __config for FreeBSD (PR #77242)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 7 22:25:03 PST 2024
ldionne wrote:
Actually, `_LIBCPP_C_HAS_NO_GETS` shouldn't be necessary anymore, since its only usage is in:
```
#if _LIBCPP_STD_VER <= 11 && !defined(_LIBCPP_C_HAS_NO_GETS)
using ::gets _LIBCPP_USING_IF_EXISTS;
#endif
```
Since `::gets` is marked as `_LIBCPP_USING_IF_EXISTS`, it should be possible to replace this by
```
#if _LIBCPP_STD_VER <= 11
using ::gets _LIBCPP_USING_IF_EXISTS;
#endif
```
What issue were you seeing on FreeBSD that prompted this change?
https://github.com/llvm/llvm-project/pull/77242
More information about the libcxx-commits
mailing list