| 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| 3 | * This file is part of the mingw-w64 runtime package. |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 | */ |
| 6 | |
| 7 | #undef __MSVCRT_VERSION__ |
| 8 | #define _UCRT |
| 9 | |
| 10 | #include <stdio.h> |
| 11 | #include <stdlib.h> |
| 12 | #include <internal.h> |
| 13 | |
| 14 | void __cdecl __MINGW_ATTRIB_NORETURN _amsg_exit(int ret) |
| 15 | { |
| 16 | fprintf(stderr, "runtime error %d\n", ret); |
| 17 | _exit(255); |
| 18 | } |
| 19 | void __cdecl (*__MINGW_IMP_SYMBOL(_amsg_exit))(int) = _amsg_exit; |