diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-07-26 14:30:42 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-07-26 14:30:42 +0100 |
commit | a5378f9b60d37d9839aea8f9ef50ad9c5a0f738c (patch) | |
tree | cc0475412df1331bf9f4157f6256e7caf113a2cb /libstdc++-v3/include/std/bit | |
parent | 3644cadf6a9d5a5cd8e83b0123316cf184fa4e3e (diff) | |
download | gcc-a5378f9b60d37d9839aea8f9ef50ad9c5a0f738c.zip gcc-a5378f9b60d37d9839aea8f9ef50ad9c5a0f738c.tar.gz gcc-a5378f9b60d37d9839aea8f9ef50ad9c5a0f738c.tar.bz2 |
Define __cpp_lib_endian feature test macro
This macro was added as part of moving std::endian from <type_traits> to
<bit>.
* include/std/bit (__cpp_lib_endian): Define.
* include/std/version (__cpp_lib_endian): Define.
* testsuite/26_numerics/endian/2.cc: New.
* testsuite/26_numerics/endian/3.cc: New.
* testsuite/26_numerics/endian/4.cc: New.
From-SVN: r273828
Diffstat (limited to 'libstdc++-v3/include/std/bit')
-rw-r--r-- | libstdc++-v3/include/std/bit | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/bit b/libstdc++-v3/include/std/bit index d57433c..f01fcd6 100644 --- a/libstdc++-v3/include/std/bit +++ b/libstdc++-v3/include/std/bit @@ -315,6 +315,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION log2p1(_Tp __x) noexcept { return std::__log2p1(__x); } +#define __cpp_lib_endian 201907L + /// Byte order enum class endian { |