OSDN Git Service

libc: fix __cxa_atexit implicit declaration
authorsynergydev <synergye@codefi.re>
Mon, 7 Oct 2013 08:13:11 +0000 (01:13 -0700)
committerElliott Hughes <enh@google.com>
Mon, 7 Oct 2013 18:33:20 +0000 (11:33 -0700)
Change-Id: Iacad18b332a717e4485c83df4bd42a850ff7699f

libc/arch-common/bionic/atexit.h

index bc776a8..16ae7aa 100644 (file)
  * 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));
 }