/[tewi]/Server/main.c
ViewVC logotype

Diff of /Server/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by nishi, Thu Oct 17 09:53:39 2024 UTC Revision 1.2 by nishi, Tue Nov 19 07:55:13 2024 UTC
# Line 100  char tw_server[2048]; Line 100  char tw_server[2048];
100    
101  int startup(int argc, char** argv);  int startup(int argc, char** argv);
102    
103  #if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__)  #if defined(__MINGW32__) || (defined(_MSC_VER) && !defined(WINCE)) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__)
104  char* get_registry(const char* main, const char* sub) {  char* get_registry(const char* main, const char* sub) {
105          DWORD bufsize = 512;          DWORD bufsize = 512;
106          HKEY handle;          HKEY handle;
# Line 761  void thread_stuff(void* pargs) { Line 761  void thread_stuff(void* pargs) {
761  int startup(int argc, char** argv) {  int startup(int argc, char** argv) {
762          int i;          int i;
763          char* r;          char* r;
764  #if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__)  #if defined(__MINGW32__) || (defined(_MSC_VER) && !defined(WINCE)) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__)
765          char* confpath = cm_strdup(PREFIX "/etc/tewi.conf");          char* confpath = cm_strdup(PREFIX "/etc/tewi.conf");
766          char* regpath = get_registry("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Tewi HTTPd", "InstallDir");          char* regpath = get_registry("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Tewi HTTPd", "InstallDir");
767          if(regpath != NULL) {          if(regpath != NULL) {
# Line 848  int startup(int argc, char** argv) { Line 848  int startup(int argc, char** argv) {
848  #if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__)  #if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__)
849          signal(SIGCHLD, SIG_IGN);          signal(SIGCHLD, SIG_IGN);
850          signal(SIGPIPE, SIG_IGN);          signal(SIGPIPE, SIG_IGN);
851  #elif !defined(BUILD_GUI) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)  #elif !defined(BUILD_GUI) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__) && !defined(WINCE)
852          SetConsoleTitle(tw_server);          SetConsoleTitle(tw_server);
853  #endif  #endif
854          return -1;          return -1;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

nishi@yakumo.dev
ViewVC Help
Powered by ViewVC 1.3.0-dev