diff options
author | Katsuhiko Nishimra <ktns.87@gmail.com> | 2017-08-09 21:37:52 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-08-09 22:37:52 +0100 |
commit | 2ae804bf9dbc3a139cd267f123be909d07e70b78 (patch) | |
tree | 0860b80ee627f8b13f59430f5a32320e72b1821c /libstdc++-v3/include | |
parent | 2fb40463a9dd6db329be3d4eb4dca98a7a67466c (diff) | |
download | gcc-2ae804bf9dbc3a139cd267f123be909d07e70b78.zip gcc-2ae804bf9dbc3a139cd267f123be909d07e70b78.tar.gz gcc-2ae804bf9dbc3a139cd267f123be909d07e70b78.tar.bz2 |
Fix test for __is_aggregate support in Clang
2017-08-09 Katsuhiko Nishimra <ktns.87@gmail.com>
* include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Use
__is_identifier instead of __has_builtin.
From-SVN: r251008
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r-- | libstdc++-v3/include/std/type_traits | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 390b6f4..ee9c75b 100644 --- a/libstdc++-v3/include/std/type_traits +++ b/libstdc++-v3/include/std/type_traits @@ -2894,9 +2894,9 @@ template <typename _From, typename _To> #if __GNUC__ >= 7 # define _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 1 -#elif defined __has_builtin +#elif defined(__is_identifier) // For non-GNU compilers: -# if __has_builtin(__is_aggregate) +# if ! __is_identifier(__is_aggregate) # define _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 1 # endif #endif |