Changeset 215 in Main for trunk/Server/module.c


Ignore:
Timestamp:
Oct 3, 2024, 4:24:43 AM (6 weeks ago)
Author:
Nishi
Message:

can be compiled using bcc32 now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/module.c

    r212 r215  
    1212#include <string.h>
    1313#include <stdlib.h>
    14 #ifndef _MSC_VER
     14#if !defined(_MSC_VER) && !defined(__BORLANDC__)
    1515#include <unistd.h>
    1616#endif
     
    2727#else
    2828
    29 #if defined(__MINGW32__) || defined(_MSC_VER)
     29#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__)
    3030#include <windows.h>
    3131#else
     
    3737        void* lib;
    3838        chdir(config.server_root);
    39 #if defined(__MINGW32__) || defined(_MSC_VER)
     39#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__)
    4040        lib = LoadLibraryA(path);
    4141#else
     
    5151
    5252void* tw_module_symbol(void* mod, const char* sym) {
    53 #if defined(__MINGW32__) || defined(_MSC_VER)
     53#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__)
    5454        return GetProcAddress(mod, sym);
    5555#else
Note: See TracChangeset for help on using the changeset viewer.