Changeset 311 in Main for trunk/Server/main.c


Ignore:
Timestamp:
Oct 13, 2024, 10:23:22 AM (5 weeks ago)
Author:
Nishi
Message:

attempting to add os/2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/main.c

    r310 r311  
    3131#include "tw_version.h"
    3232
    33 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
     33#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__))
    3434#include <windows.h>
    3535#endif
     
    8989int startup(int argc, char** argv);
    9090
    91 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__)
     91#if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__)) || defined(__BORLANDC__)
    9292char* get_registry(const char* main, const char* sub) {
    9393        DWORD bufsize = 512;
     
    718718        int i;
    719719        char* r;
    720 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__)
     720#if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__)) || defined(__BORLANDC__)
    721721        char* confpath = cm_strdup(PREFIX "/etc/tewi.conf");
    722722        char* regpath = get_registry("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Tewi HTTPd", "InstallDir");
Note: See TracChangeset for help on using the changeset viewer.