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; |
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) { |
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; |