From 33418f674259facdd9a3717aa21a9465a1c8ead7 Mon Sep 17 00:00:00 2001 From: Trung Nguyen <57174311+trungnt2910@users.noreply.github.com> Date: Tue, 23 Jan 2024 01:23:28 +0700 Subject: [PATCH] libc: Fix __cxa_thread_atexit prototype (#1088) 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