libc: fix __cxa_atexit implicit declaration

Change-Id: Iacad18b332a717e4485c83df4bd42a850ff7699f
This commit is contained in:
synergydev 2013-10-07 01:13:11 -07:00 committed by Elliott Hughes
parent 04cdfa67c7
commit 589eaa4c72
1 changed files with 5 additions and 4 deletions

View File

@ -26,10 +26,11 @@
* SUCH DAMAGE.
*/
extern void *__dso_handle;
extern void* __dso_handle;
extern int __cxa_atexit(void (*)(void*), void*, void*);
__attribute__ ((visibility ("hidden")))
int atexit(void (*func)(void))
{
return (__cxa_atexit((void (*)(void *))func, (void *)0, &__dso_handle));
int atexit(void (*func)(void)) {
return (__cxa_atexit((void (*)(void*)) func, (void*) 0, &__dso_handle));
}