am 5be92401: am 101a6987: am 5d40527a: Merge "libc: fix __cxa_atexit implicit declaration"

* commit '5be92401e991779d99ab74f1577359db6a48d54d':
  libc: fix __cxa_atexit implicit declaration
This commit is contained in:
Elliott Hughes 2013-10-07 11:39:14 -07:00 committed by Android Git Automerger
commit f296aece8f

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));
}