Changeset 216 in Main
- Timestamp:
- Oct 3, 2024, 4:31:23 AM (6 weeks ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Platform/win32-service.mk
r62 r216 10 10 LIBS = -lws2_32 11 11 EXEC = .exe 12 LIB = .dll12 LIBSUF = .dll 13 13 PREOBJS = tewi.res -
trunk/Platform/win32.mk
r62 r216 10 10 LIBS = -lws2_32 11 11 EXEC = .exe 12 LIB = .dll12 LIBSUF = .dll 13 13 PREOBJS = tewi.res -
trunk/Platform/win64-service.mk
r149 r216 10 10 LIBS = -lws2_32 11 11 EXEC = .exe 12 LIB = .dll12 LIBSUF = .dll 13 13 PREOBJS = tewi.res -
trunk/Platform/win64.mk
r62 r216 10 10 LIBS = -lws2_32 11 11 EXEC = .exe 12 LIB = .dll12 LIBSUF = .dll 13 13 PREOBJS = tewi.res -
trunk/Server/server.c
r215 r216 43 43 44 44 #include "strptime.h" 45 typedef int socklen_t; 45 46 #else 46 47 #ifdef USE_POLL … … 449 450 }; 450 451 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 454 454 void tw_server_pass(void* ptr) { 455 455 #elif defined(__HAIKU__) … … 465 465 SOCKADDR addr = ((struct pass_entry*)ptr)->addr; 466 466 #else 467 #define NO_RETURN_THREAD 467 468 void tw_server_pass(int sock, bool ssl, int port, SOCKADDR addr) { 468 469 #endif … … 619 620 cm_log("Server", "Filesystem path is %s", path); 620 621 #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] == '/') { 623 624 path[i] = 0; 624 } else{625 } else { 625 626 break; 626 627 } … … 899 900 close_socket(sock); 900 901 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) 901 _endthread( 902 #ifndef __BORLANDC__ 903 0 904 #endif 905 ); 902 _endthread(); 906 903 #elif defined(__HAIKU__) 907 904 exit_thread(0); 908 905 #endif 909 #ifndef __BORLANDC__906 #ifndef NO_RETURN_THREAD 910 907 return 0; 911 908 #endif -
trunk/VC6Compat/stdint.h
r212 r216 10 10 typedef signed short int16_t; 11 11 typedef signed int int32_t; 12 typedef int socklen_t;13 12 14 13 #define INT32_MAX 0x7fffffff
Note:
See TracChangeset
for help on using the changeset viewer.