Fix the libc hook.
Friend declarations to `extern "C"` functions must have a forward declaration with the correct signature.
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#error At most one out of SNMALLOC_USE_THREAD_CLEANUP and SNMALLOC_USE_THREAD_DESTRUCTOR may be defined.
|
||||
#endif
|
||||
|
||||
extern "C" void _malloc_thread_cleanup();
|
||||
|
||||
namespace snmalloc
|
||||
{
|
||||
/**
|
||||
@@ -147,7 +149,7 @@ namespace snmalloc
|
||||
* This function must be allowed to call back into this class to destroy
|
||||
* the state.
|
||||
*/
|
||||
friend void _malloc_thread_cleanup();
|
||||
friend void ::_malloc_thread_cleanup();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user