mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
17 lines
643 B
C
Vendored
17 lines
643 B
C
Vendored
/**
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
* This file is part of the mingw-w64 runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
|
|
_onexit_t __cdecl _onexit(_onexit_t func)
|
|
{
|
|
return atexit((void (__cdecl *)(void))func) == 0 ? func : NULL;
|
|
}
|
|
_onexit_t __cdecl (*__MINGW_IMP_SYMBOL(_onexit))(_onexit_t func) = _onexit;
|
|
|
|
_onexit_t __attribute__ ((alias ("_onexit"))) __cdecl onexit(_onexit_t);
|
|
extern _onexit_t (__cdecl * __attribute__ ((alias (__MINGW64_STRINGIFY(__MINGW_IMP_SYMBOL(_onexit))))) __MINGW_IMP_SYMBOL(onexit))(_onexit_t);
|