From 71f3450037da9de9ab9c78d255d2b8ea392b2e29 Mon Sep 17 00:00:00 2001 From: Nunuhara Cabbage Date: Sat, 7 Jan 2023 10:34:41 -0800 Subject: [PATCH] Only define windows_error_handler on Windows --- src/system4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system4.c b/src/system4.c index a9c395e..8589dc9 100644 --- a/src/system4.c +++ b/src/system4.c @@ -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[]) {