From 13dcdf2a06434d2b75ccda8a52223f3c9d37fcd1 Mon Sep 17 00:00:00 2001 From: Trung Nguyen <57174311+trungnt2910@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:17:58 +0000 Subject: [PATCH] libc: Fix __cxa_thread_atexit prototype The first parameter should be a function pointer. Otherwise, this would conflict with the definition provided by `libcxxabi`. --- libc/cxxabi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/cxxabi.h b/libc/cxxabi.h index 22c5b71e7..ed1dca20a 100644 --- a/libc/cxxabi.h +++ b/libc/cxxabi.h @@ -8,7 +8,7 @@ namespace __cxxabiv1 { char *__cxa_demangle(const char *, char *, size_t *, int *); int __cxa_atexit(void (*)(void *), void *, void *) paramsnonnull((1)) dontthrow; -int __cxa_thread_atexit(void *, void *, void *) dontthrow; +int __cxa_thread_atexit(void (*)(void *), void *, void *) dontthrow; void __cxa_finalize(void *); #ifdef __cplusplus