From bc9962bab7138dce0aa67fb1ab9e8c5f583d909b Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 18 Sep 2024 11:06:12 +0000 Subject: [PATCH] set title for windows build git-svn-id: file:///raid/svn-personal/tewi/trunk@50 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/main.c | 6 ++++++ config.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Server/main.c b/Server/main.c index 967b6f7..6da6567 100644 --- a/Server/main.c +++ b/Server/main.c @@ -9,6 +9,10 @@ #include #include +#ifdef __MINGW32__ +#include +#endif + #ifndef NO_SSL #include #endif @@ -76,6 +80,8 @@ int main(int argc, char** argv) { cm_log("Daemon", "Ready, server: %s", tw_server); #ifndef __MINGW32__ signal(SIGCHLD, SIG_IGN); +#else + SetConsoleTitle(tw_server); #endif tw_server_loop(); } diff --git a/config.h b/config.h index 34ea876..7d9d770 100644 --- a/config.h +++ b/config.h @@ -3,7 +3,7 @@ #ifndef __CONFIG_H__ #define __CONFIG_H__ -#define NO_SSL +#undef NO_SSL /* DO NOT EDIT BELOW THIS LINE */ -- 2.43.0