Changeset 216 in Main


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

fix windows

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Platform/win32-service.mk

    r62 r216  
    1010LIBS = -lws2_32
    1111EXEC = .exe
    12 LIB = .dll
     12LIBSUF = .dll
    1313PREOBJS = tewi.res
  • trunk/Platform/win32.mk

    r62 r216  
    1010LIBS = -lws2_32
    1111EXEC = .exe
    12 LIB = .dll
     12LIBSUF = .dll
    1313PREOBJS = tewi.res
  • trunk/Platform/win64-service.mk

    r149 r216  
    1010LIBS = -lws2_32
    1111EXEC = .exe
    12 LIB = .dll
     12LIBSUF = .dll
    1313PREOBJS = tewi.res
  • trunk/Platform/win64.mk

    r62 r216  
    1010LIBS = -lws2_32
    1111EXEC = .exe
    12 LIB = .dll
     12LIBSUF = .dll
    1313PREOBJS = tewi.res
  • trunk/Server/server.c

    r215 r216  
    4343
    4444#include "strptime.h"
     45typedef int socklen_t;
    4546#else
    4647#ifdef USE_POLL
     
    449450};
    450451
    451 #if defined(__MINGW32__) || defined(_MSC_VER)
    452 unsigned int WINAPI tw_server_pass(void* ptr) {
    453 #elif defined(__BORLANDC__)
     452#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__)
     453#define NO_RETURN_THREAD
    454454void tw_server_pass(void* ptr) {
    455455#elif defined(__HAIKU__)
     
    465465        SOCKADDR addr = ((struct pass_entry*)ptr)->addr;
    466466#else
     467#define NO_RETURN_THREAD
    467468        void tw_server_pass(int sock, bool ssl, int port, SOCKADDR addr) {
    468469#endif
     
    619620                        cm_log("Server", "Filesystem path is %s", path);
    620621#if defined(_MSC_VER) || defined(__BORLANDC__)
    621                         for(i = strlen(path) - 1; i >= 0; i--){
    622                                 if(path[i] == '/'){
     622                        for(i = strlen(path) - 1; i >= 0; i--) {
     623                                if(path[i] == '/') {
    623624                                        path[i] = 0;
    624                                 }else{
     625                                } else {
    625626                                        break;
    626627                                }
     
    899900        close_socket(sock);
    900901#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__)
    901         _endthread(
    902 #ifndef __BORLANDC__
    903                 0
    904 #endif
    905         );
     902        _endthread();
    906903#elif defined(__HAIKU__)
    907904                exit_thread(0);
    908905#endif
    909 #ifndef __BORLANDC__
     906#ifndef NO_RETURN_THREAD
    910907        return 0;
    911908#endif
  • trunk/VC6Compat/stdint.h

    r212 r216  
    1010typedef signed short int16_t;
    1111typedef signed int int32_t;
    12 typedef int socklen_t;
    1312
    1413#define INT32_MAX 0x7fffffff
Note: See TracChangeset for help on using the changeset viewer.