[libcxx-commits] [PATCH] D108630: [libc++] Remove _LIBCPP_HAS_NO_LONG_LONG in favour of using_if_exists

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 24 07:34:00 PDT 2021


ldionne created this revision.
ldionne added reviewers: dim, emaste.
Herald added subscribers: krytarowski, arichardson.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

_LIBCPP_HAS_NO_LONG_LONG was only defined on FreeBSD. Instead, use the
using_if_exists attribute to skip over declarations that are not available
on the base system. Note that there's an annoying limitation that we can't
conditionally define a function based on whether the base system provides
a function, so for example we still need preprocessor logic to define the
abs() and div() overloads.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108630

Files:
  libcxx/include/__config
  libcxx/include/cstdlib
  libcxx/include/cwchar
  libcxx/include/stdlib.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108630.368341.patch
Type: text/x-patch
Size: 4639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210824/4718f9e9/attachment.bin>


More information about the libcxx-commits mailing list