Skip to content

Commit 4f4f13d

Browse files
brooksdavisresistor
authored andcommitted
libcxx: prefer __has_feature(capabilities) to defined(__CHERI__)
1 parent 5998d9c commit 4f4f13d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/limits

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ protected:
448448
static _LIBCPP_CONSTEXPR const float_round_style round_style = round_to_nearest;
449449
};
450450

451-
#ifdef __CHERI__
451+
#if __has_feature(capabilities)
452452
template<>
453453
class __libcpp_numeric_limits<__intcap_t, true>
454454
: public __libcpp_numeric_limits<long, true> { };

0 commit comments

Comments
 (0)