mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-22 23:18:01 +03:00
Only define windows_error_handler on Windows
This commit is contained in:
+3
-1
@@ -385,13 +385,15 @@ enum {
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
static void windows_error_handler(const char *msg)
|
||||
{
|
||||
sys_warning("%s", msg);
|
||||
sys_warning("Press any key to exit...\n");
|
||||
sys_warning("Press the enter key to exit...\n");
|
||||
getchar();
|
||||
sys_exit(1);
|
||||
}
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user