Changeset 240 in Main for trunk/Tool


Ignore:
Timestamp:
Oct 3, 2024, 2:54:55 PM (6 weeks ago)
Author:
Nishi
Message:

winsock1 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tool/option.c

    r168 r240  
    2727                printf("-lssl -lcrypto");
    2828#endif
     29                if(strcmp(argv[3], "WINDOWS") == 0){
     30#ifdef USE_WINSOCK1
     31                        printf(" -lwsock32");
     32#else
     33                        printf(" -lws2_32");
     34#endif
     35                }else if(strcmp(argv[3], "WINDOWS_WATCOM") == 0){
     36#ifdef USE_WINSOCK1
     37                        printf(" wsock32.lib");
     38#else
     39                        printf(" ws2_32.lib");
     40#endif
     41                }
    2942        }
    3043        printf("\n");
Note: See TracChangeset for help on using the changeset viewer.