diff options
| author | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-02-14 00:56:09 +0100 |
|---|---|---|
| committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-02-15 16:52:25 +0100 |
| commit | 4f15267d3dd797a15901fe9352f0d5fa121b9095 (patch) | |
| tree | 02c70169ff8fc2590c432b78a26283a7d5822da3 /libcxx/include/__memory/aligned_alloc.h | |
| parent | 6b991ba486b64f09e7d90ebc1fc2118ab48c8bff (diff) | |
[libc++][NFC] Replace _LIBCPP_STD_VER > x with _LIBCPP_STD_VER >= x
This change is almost fully mechanical. The only interesting change is in `generate_feature_test_macro_components.py` to generate `_LIBCPP_STD_VER >=` instead. To avoid churn in the git-blame this commit should be added to the `.git-blame-ignore-revs` once committed.
Reviewed By: ldionne, var-const, #libc
Spies: jloser, libcxx-commits, arichardson, arphaman, wenlei
Differential Revision: https://reviews.llvm.org/D143962
Diffstat (limited to 'libcxx/include/__memory/aligned_alloc.h')
| -rw-r--r-- | libcxx/include/__memory/aligned_alloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__memory/aligned_alloc.h b/libcxx/include/__memory/aligned_alloc.h index 41520cffaa46..786963c72dfc 100644 --- a/libcxx/include/__memory/aligned_alloc.h +++ b/libcxx/include/__memory/aligned_alloc.h @@ -31,7 +31,7 @@ inline _LIBCPP_HIDE_FROM_ABI void* __libcpp_aligned_alloc(std::size_t __alignment, std::size_t __size) { # if defined(_LIBCPP_MSVCRT_LIKE) return ::_aligned_malloc(__size, __alignment); -# elif _LIBCPP_STD_VER > 14 && !defined(_LIBCPP_HAS_NO_C11_ALIGNED_ALLOC) +# elif _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_C11_ALIGNED_ALLOC) // aligned_alloc() requires that __size is a multiple of __alignment, // but for C++ [new.delete.general], only states "if the value of an // alignment argument passed to any of these functions is not a valid |
