[libcxx-commits] [libcxx] [libcxxabi] [libc++][RFC] Always define internal feature test macros (PR #89178)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 11 07:14:18 PDT 2024
================
@@ -318,23 +323,31 @@ typedef __char32_t char32_t;
// Objective-C++ features (opt-in)
# if __has_feature(objc_arc)
-# define _LIBCPP_HAS_OBJC_ARC
+# define _LIBCPP_HAS_OBJC_ARC 1
+# else
+# define _LIBCPP_HAS_OBJC_ARC 0
# endif
# if __has_feature(objc_arc_weak)
# define _LIBCPP_HAS_OBJC_ARC_WEAK
----------------
ldionne wrote:
Why is this one not a 0-1 macro?
https://github.com/llvm/llvm-project/pull/89178
More information about the libcxx-commits
mailing list