set title for windows build

git-svn-id: file:///raid/svn-personal/tewi/trunk@50 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
Nishi 2024-09-18 11:06:12 +00:00
parent 3e51e27b87
commit bc9962bab7
2 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,10 @@
#include <string.h>
#include <signal.h>
#ifdef __MINGW32__
#include <windows.h>
#endif
#ifndef NO_SSL
#include <openssl/opensslv.h>
#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();
}

View File

@ -3,7 +3,7 @@
#ifndef __CONFIG_H__
#define __CONFIG_H__
#define NO_SSL
#undef NO_SSL
/* DO NOT EDIT BELOW THIS LINE */