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`.
This commit is contained in:
Trung Nguyen 2024-01-23 01:23:28 +07:00 committed by GitHub
parent 83a8686c06
commit 33418f6742
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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