libc: Fix __cxa_thread_atexit prototype

The first parameter should be a function pointer.

Otherwise, this would conflict with the definition provided by
`libcxxabi`.
This commit is contained in:
Trung Nguyen 2024-01-17 12:17:58 +00:00
parent 08793aa143
commit 13dcdf2a06
No known key found for this signature in database
GPG key ID: 8C6357127C5190F6

View file

@ -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