]> Git repositories of Nishi - tewi.git/commitdiff
set title for windows build
authorNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 11:06:12 +0000 (11:06 +0000)
committerNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 11:06:12 +0000 (11:06 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@50 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/main.c
config.h

index 967b6f7d4b3eb4253f38167998c91151508502d3..6da656768f07f18f180c36183c7fa76c71744d09 100644 (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();
 }
index 34ea876f192b259a8197750572b81da22b5af539..7d9d77097be53184ae63574161d44aacebea675f 100644 (file)
--- 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 */