ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/tewi/Server/main.c
(Generate patch)

Comparing Server/main.c (file contents):
Revision 1.1 by nishi, Thu Oct 17 09:53:39 2024 UTC vs.
Revision 1.2 by nishi, Tue Nov 19 07:55:13 2024 UTC

# Line 100 | Line 100 | char tw_server[2048];
100  
101   int startup(int argc, char** argv);
102  
103 < #if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__)
103 > #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) {
105          DWORD bufsize = 512;
106          HKEY handle;
# Line 761 | Line 761 | void thread_stuff(void* pargs) {
761   int startup(int argc, char** argv) {
762          int i;
763          char* r;
764 < #if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__)
764 > #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");
766          char* regpath = get_registry("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Tewi HTTPd", "InstallDir");
767          if(regpath != NULL) {
# Line 848 | Line 848 | int startup(int argc, char** argv) {
848   #if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__)
849          signal(SIGCHLD, SIG_IGN);
850          signal(SIGPIPE, SIG_IGN);
851 < #elif !defined(BUILD_GUI) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)
851 > #elif !defined(BUILD_GUI) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__) && !defined(WINCE)
852          SetConsoleTitle(tw_server);
853   #endif
854          return -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines