Skip to content

Commit 3e4c9dc

Browse files
authored
[libc++] Add explicit ABI annotations to functions from the block runtime declared in <__functional/function.h> (#140592)
1 parent 6181f4f commit 3e4c9dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libcxx/include/__functional/function.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,9 @@ class __policy_func<_Rp(_ArgTypes...)> {
752752

753753
# if _LIBCPP_HAS_BLOCKS_RUNTIME
754754

755-
extern "C" void* _Block_copy(const void*);
756-
extern "C" void _Block_release(const void*);
755+
_LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
756+
_LIBCPP_EXPORTED_FROM_ABI extern "C" void* _Block_copy(const void*);
757+
_LIBCPP_EXPORTED_FROM_ABI extern "C" void _Block_release(const void*);
757758

758759
template <class _Rp1, class... _ArgTypes1, class _Alloc, class _Rp, class... _ArgTypes>
759760
class __func<_Rp1 (^)(_ArgTypes1...), _Alloc, _Rp(_ArgTypes...)> : public __base<_Rp(_ArgTypes...)> {
@@ -826,6 +827,7 @@ class __func<_Rp1 (^)(_ArgTypes1...), _Alloc, _Rp(_ArgTypes...)> : public __base
826827
}
827828
# endif // _LIBCPP_HAS_RTTI
828829
};
830+
_LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS
829831

830832
# endif // _LIBCPP_HAS_EXTENSION_BLOCKS
831833

0 commit comments

Comments
 (0)