[all-commits] [llvm/llvm-project] c137a0: [libc++] Remove _LIBCPP_HAS_NO_LONG_LONG in favour...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Fri Sep 3 11:27:56 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c137a0754c4e13181c226359687ae9f3d8b488f0
https://github.com/llvm/llvm-project/commit/c137a0754c4e13181c226359687ae9f3d8b488f0
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2021-09-03 (Fri, 03 Sep 2021)
Changed paths:
M libcxx/include/__config
M libcxx/include/cstdlib
M libcxx/include/cwchar
M libcxx/include/stdlib.h
Log Message:
-----------
[libc++] Remove _LIBCPP_HAS_NO_LONG_LONG in favour of using_if_exists
_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.
Differential Revision: https://reviews.llvm.org/D108630
More information about the All-commits
mailing list