Skip to content

Commit f76dd14

Browse files
committed
Use C++ attributes
1 parent 9c0ffae commit f76dd14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/src/include/overridable_function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ _LIBCPP_END_NAMESPACE_STD
7070
[[gnu::used]] static type symbol arglist __asm__("_" _LIBCPP_TOSTRING(symbol)); \
7171
__asm__(".globl _" _LIBCPP_TOSTRING(symbol)); \
7272
__asm__(".weak_definition _" _LIBCPP_TOSTRING(symbol)); \
73-
extern type name arglist __attribute__((weak_import)); \
73+
[[clang::weak_import]] extern type name arglist; \
7474
_LIBCPP_BEGIN_NAMESPACE_STD \
7575
template <> \
7676
inline bool __is_function_overridden<static_cast<type(*) arglist>(name)>() { \

0 commit comments

Comments
 (0)