Skip to content

Commit 7e9885a

Browse files
committed
[libc++] Remove a few __has_foo defines in __config
All the compilers we support implement those macros or builtins, so it's not useful to have a fallback to 0 when they're not implemented.
1 parent 179e174 commit 7e9885a

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

libcxx/include/__config

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -334,26 +334,6 @@ _LIBCPP_HARDENING_MODE_DEBUG
334334
# define _LIBCPP_CXX03_LANG
335335
# endif
336336

337-
# ifndef __has_attribute
338-
# define __has_attribute(__x) 0
339-
# endif
340-
341-
# ifndef __has_builtin
342-
# define __has_builtin(__x) 0
343-
# endif
344-
345-
# ifndef __has_extension
346-
# define __has_extension(__x) 0
347-
# endif
348-
349-
# ifndef __has_feature
350-
# define __has_feature(__x) 0
351-
# endif
352-
353-
# ifndef __has_cpp_attribute
354-
# define __has_cpp_attribute(__x) 0
355-
# endif
356-
357337
# ifndef __has_constexpr_builtin
358338
# define __has_constexpr_builtin(x) 0
359339
# endif
@@ -375,10 +355,6 @@ _LIBCPP_HARDENING_MODE_DEBUG
375355

376356
# define __has_keyword(__x) !(__is_identifier(__x))
377357

378-
# ifndef __has_include
379-
# define __has_include(...) 0
380-
# endif
381-
382358
# ifndef __has_warning
383359
# define __has_warning(...) 0
384360
# endif

0 commit comments

Comments
 (0)