xenocara/lib/libGL/libmesa/_atexit.c
2011-10-23 13:57:36 +00:00

13 lines
312 B
C

/**
** Hack for OpenBSD atexit
** Author: Matthew Dempsky <matthew@dempsky.org>
**/
extern int __cxa_atexit(void (*)(void *), void *, void *);
extern void *__dso_handle;
int __attribute__((visibility("hidden")))
atexit(void (*fn)(void))
{
return (__cxa_atexit((void (*)(void *))fn, 0, &__dso_handle));
}