- Timestamp:
- Oct 4, 2024, 1:08:33 PM (6 weeks ago)
- Location:
- 2.03E
- Files:
-
- 10 edited
- 14 copied
Legend:
- Unmodified
- Added
- Removed
-
2.03E/Common/Makefile
r218 r254 15 15 16 16 common.a: $(OBJS) 17 rm -f common.a 17 18 $(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)` 18 19 19 20 common.lib: $(OBJS) 21 rm -f common.lib 20 22 $(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)` 21 23 -
2.03E/Common/dir.c
r219 r254 22 22 char** cm_scandir(const char* path) { 23 23 #if defined(_MSC_VER) || defined(__BORLANDC__) 24 return NULL; 24 WIN32_FIND_DATA ffd; 25 HANDLE hfind; 26 char** r = malloc(sizeof(*r)); 27 int len; 28 char** old; 29 int i; 30 char* p; 31 r[0] = NULL; 32 33 p = cm_strcat(path, "/*"); 34 hfind = FindFirstFile(p, &ffd); 35 if(INVALID_HANDLE_VALUE == hfind) { 36 return NULL; 37 } 38 do { 39 if(strcmp(ffd.cFileName, ".") != 0 && strcmp(ffd.cFileName, "..") != 0) { 40 old = r; 41 for(i = 0; old[i] != NULL; i++) 42 ; 43 r = malloc(sizeof(*r) * (i + 2)); 44 for(i = 0; old[i] != NULL; i++) r[i] = old[i]; 45 r[i] = cm_strcat(ffd.cFileName, (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? "/" : ""); 46 r[i + 1] = NULL; 47 free(old); 48 } 49 } while(FindNextFile(hfind, &ffd) != 0); 50 FindClose(hfind); 51 free(p); 52 for(len = 0; r[len] != NULL; len++) 53 ; 54 qsort(r, len, sizeof(char*), cm_sort); 55 56 old = r; 57 for(i = 0; old[i] != NULL; i++) 58 ; 59 r = malloc(sizeof(*r) * (i + 2)); 60 for(i = 0; old[i] != NULL; i++) r[i + 1] = old[i]; 61 r[0] = cm_strdup("../"); 62 r[i + 1] = NULL; 63 free(old); 64 65 return r; 25 66 #else 26 67 DIR* dir = opendir(path); -
2.03E/Module/Makefile
r219 r254 18 18 19 19 clean: 20 rm -f *.o *.so *.a *.dll 20 rm -f *.o *.so *.a *.dll *.tds -
2.03E/Platform/bcc.mk
r244 r254 11 11 LDFLAGS = 12 12 LIBS = 13 EXEC = 13 EXEC = .exe 14 14 STATIC = lib 15 15 LIBSUF = .dll 16 16 OBJ = obj 17 REQOBJS = tewi_bcc.resgui_bcc.res17 REQOBJS = gui_bcc.res -
2.03E/Platform/vc6.mk
r249 r254 10 10 LDFLAGS = 11 11 LIBS = -ladvapi32 -llibcmt 12 EXEC = 12 EXEC = .exe 13 13 STATIC = lib 14 14 LIBSUF = .dll -
2.03E/Platform/win32.mk
r244 r254 12 12 EXEC = .exe 13 13 LIBSUF = .dll 14 PREOBJS = tewi.resgui.res14 PREOBJS = gui.res -
2.03E/Platform/win64.mk
r244 r254 12 12 EXEC = .exe 13 13 LIBSUF = .dll 14 PREOBJS = tewi.resgui.res14 PREOBJS = gui.res -
2.03E/README
r252 r254 38 38 Windows 9x Working if I compile it using Borland C++ 5.x 39 39 or Visual C++ 6.0/Open Watcom 2.0 40 TODO: Get directory listing working on41 Borland/VC++42 40 Windows NT 4.0/later Working on NT 4.0 SP6a 43 41 Linux Working on Debian GNU/Linux 12 (x86_64) -
2.03E/README.tmpl
r252 r254 38 38 Windows 9x Working if I compile it using Borland C++ 5.x 39 39 or Visual C++ 6.0/Open Watcom 2.0 40 TODO: Get directory listing working on41 Borland/VC++42 40 Windows NT 4.0/later Working on NT 4.0 SP6a 43 41 Linux Working on Debian GNU/Linux 12 (x86_64) -
2.03E/Server/Makefile
r253 r254 46 46 $(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $< 47 47 48 tewi.res: concat.rc ../Binary/tewi.ico 49 $(WINDRES) concat.rc -O coff -o $@ 50 51 tewi_bcc.res: concat.rc ../Binary/tewi.ico 52 brc32 -r -fo$@ concat.rc 53 54 gui.res: concat.rc gui.h 48 gui.res: concat.rc ../Binary/tewi.ico 55 49 $(WINDRES) concat.rc -O coff -o $@ 56 50 … … 66 60 67 61 clean: 68 rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp *.self *.pkg *.obj concat.rc 62 rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp *.self *.pkg *.obj concat.rc *.tds -
2.03E/Server/config.c
r253 r254 489 489 free(line); 490 490 fclose(f); 491 for(portcount = 0; config.ports[portcount] != -1; portcount++); 492 if(portcount == 0){ 491 for(portcount = 0; config.ports[portcount] != -1; portcount++) 492 ; 493 if(portcount == 0) { 493 494 return 1; 494 } else{495 } else { 495 496 return stop; 496 497 } -
2.03E/Server/gui.c
r253 r254 19 19 HWND button_stop; 20 20 HWND button_about; 21 HWND button_reset; 22 HWND button_exit; 21 23 HWND status; 22 24 HFONT monospace; … … 33 35 int startup(int argc, char** argv); 34 36 35 void ShowBitmapSize(HWND hWnd, HDC hdc, const char* name, int x, int y, int w, int h) {37 void ShowBitmapSize(HWND hWnd, HDC hdc, const char* name, int x, int y, int w, int h) { 36 38 HBITMAP hBitmap = LoadBitmap(hInst, name); 37 39 BITMAP bmp; … … 40 42 hmdc = CreateCompatibleDC(hdc); 41 43 SelectObject(hmdc, hBitmap); 42 if(w == 0 && h == 0) {44 if(w == 0 && h == 0) { 43 45 StretchBlt(hdc, x, y, bmp.bmWidth, bmp.bmHeight, hmdc, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY); 44 } else{46 } else { 45 47 StretchBlt(hdc, x, y, w, h, hmdc, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY); 46 48 } … … 49 51 } 50 52 51 void ShowBitmap(HWND hWnd, HDC hdc, const char* name, int x, int y){ 52 ShowBitmapSize(hWnd, hdc, name, x, y, 0, 0); 53 } 53 void ShowBitmap(HWND hWnd, HDC hdc, const char* name, int x, int y) { ShowBitmapSize(hWnd, hdc, name, x, y, 0, 0); } 54 54 55 55 int max = 0; 56 void AddLog(const char* str) {56 void AddLog(const char* str) { 57 57 HDC hdc; 58 58 PAINTSTRUCT ps; … … 65 65 GetTextExtentPoint32(hdc, str, strlen(str), &sz); 66 66 DeleteDC(hdc); 67 68 if(max < sz.cx) {67 68 if(max < sz.cx) { 69 69 max = sz.cx; 70 70 SendMessage(logarea, LB_SETHORIZONTALEXTENT, max, 0); … … 72 72 } 73 73 74 LRESULT CALLBACK VersionDialog(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) {75 if(msg == WM_COMMAND) {74 LRESULT CALLBACK VersionDialog(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) { 75 if(msg == WM_COMMAND) { 76 76 if(LOWORD(wp) == IDOK) EndDialog(hWnd, IDOK); 77 } else if(msg == WM_PAINT){77 } else if(msg == WM_PAINT) { 78 78 HDC hdc; 79 79 PAINTSTRUCT ps; … … 87 87 ShowBitmapSize(hWnd, hdc, "TEWILOGO", size.left, size.top, WINWIDTH(size), WINWIDTH(size)); 88 88 EndPaint(hWnd, &ps); 89 } else if(msg == WM_CTLCOLORDLG || msg == WM_CTLCOLORSTATIC){89 } else if(msg == WM_CTLCOLORDLG || msg == WM_CTLCOLORSTATIC) { 90 90 HDC dc = (HDC)wp; 91 91 SetBkMode(dc, TRANSPARENT); 92 92 return (LRESULT)GetSysColorBrush(COLOR_MENU); 93 } else{93 } else { 94 94 return FALSE; 95 95 } … … 97 97 } 98 98 99 void tewi_thread(void* ptr) {99 void tewi_thread(void* ptr) { 100 100 int st = startup(0, NULL); 101 101 was_starting = TRUE; 102 if(st == -1) {102 if(st == -1) { 103 103 tewi_alive = TRUE; 104 104 idle = FALSE; 105 } else{105 } else { 106 106 cm_force_log("Config error"); 107 107 idle = FALSE; … … 116 116 } 117 117 118 void StartTewi(void) {118 void StartTewi(void) { 119 119 EnableWindow(button_start, FALSE); 120 120 EnableWindow(button_stop, FALSE); … … 122 122 } 123 123 124 void StopTewi(void) {124 void StopTewi(void) { 125 125 EnableWindow(button_start, FALSE); 126 126 EnableWindow(button_stop, FALSE); … … 128 128 } 129 129 130 LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) {131 if(msg == WM_COMMAND) {130 LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) { 131 if(msg == WM_COMMAND) { 132 132 int trig = LOWORD(wp); 133 133 int ev = HIWORD(wp); 134 if(trig == GUI_BUTTON_ABOUT) {135 if(ev == BN_CLICKED) {134 if(trig == GUI_BUTTON_ABOUT) { 135 if(ev == BN_CLICKED) { 136 136 DialogBox(hInst, "VERSIONDLG", hWnd, (DLGPROC)VersionDialog); 137 137 } 138 } else if(trig == GUI_BUTTON_START){139 if(ev == BN_CLICKED) {140 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Starting Tewi HTTPd");138 } else if(trig == GUI_BUTTON_START) { 139 if(ev == BN_CLICKED) { 140 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Starting Tewi HTTPd"); 141 141 StartTewi(); 142 142 } 143 } else if(trig == GUI_BUTTON_STOP){144 if(ev == BN_CLICKED) {145 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Stopping Tewi HTTPd");143 } else if(trig == GUI_BUTTON_STOP) { 144 if(ev == BN_CLICKED) { 145 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Stopping Tewi HTTPd"); 146 146 StopTewi(); 147 147 } 148 }else if(trig == GUI_BUTTON_EXIT){ 149 if(ev == BN_CLICKED){ 150 if(tewi_alive){ 151 SendMessage(status, SB_SETTEXT, 0, (LPARAM)"Stopping Tewi HTTPd"); 148 } else if(trig == GUI_BUTTON_RESET) { 149 if(ev == BN_CLICKED) { 150 SendMessage(logarea, LB_RESETCONTENT, 0, 0); 151 max = 0; 152 SendMessage(logarea, LB_SETHORIZONTALEXTENT, max, 0); 153 } 154 } else if(trig == GUI_BUTTON_EXIT) { 155 if(ev == BN_CLICKED) { 156 if(tewi_alive) { 157 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Stopping Tewi HTTPd"); 152 158 StopTewi(); 153 159 exiting = TRUE; 154 } else{160 } else { 155 161 SendMessage(hWnd, WM_CLOSE, 0, 0); 156 162 } 157 163 } 158 } else if(trig == GUI_LOG){164 } else if(trig == GUI_LOG) { 159 165 } 160 } else if(msg == WM_CLOSE){166 } else if(msg == WM_CLOSE) { 161 167 DestroyWindow(hWnd); 162 } else if(msg == WM_DESTROY){168 } else if(msg == WM_DESTROY) { 163 169 DeleteObject(pbtewi_brush); 164 170 PostQuitMessage(0); 165 } else if(msg == WM_CREATE){171 } else if(msg == WM_CREATE) { 166 172 RECT rc, src; 167 173 GetClientRect(hWnd, &rc); … … 173 179 status = CreateStatusWindow(WS_CHILD | WS_VISIBLE | CCS_BOTTOM, NULL, hWnd, GUI_STATUS); 174 180 SendMessage(status, SB_SIMPLE, 0, 0); 175 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Welcome to Tewi HTTPd");181 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Welcome to Tewi HTTPd"); 176 182 SendMessage(status, SB_GETRECT, 0, (LPARAM)&src); 177 183 … … 180 186 button_stop = CreateWindow("BUTTON", "S&top", WS_CHILD | WS_VISIBLE | WS_DISABLED | BS_PUSHBUTTON, WINWIDTH(rc) - 100, 20 * 1, 100, 20, hWnd, (HMENU)GUI_BUTTON_STOP, hInst, NULL); 181 187 button_about = CreateWindow("BUTTON", "&About", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, WINWIDTH(rc) - 100, 20 * 2, 100, 20, hWnd, (HMENU)GUI_BUTTON_ABOUT, hInst, NULL); 182 button_about = CreateWindow("BUTTON", "E&xit", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, WINWIDTH(rc) - 100, WINHEIGHT(rc) - WINHEIGHT(src) - 20, 100, 20, hWnd, (HMENU)GUI_BUTTON_EXIT, hInst, NULL); 188 button_reset = CreateWindow("BUTTON", "&Reset", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, WINWIDTH(rc) - 100, WINHEIGHT(rc) - WINHEIGHT(src) - 20 - 20, 100, 20, hWnd, (HMENU)GUI_BUTTON_RESET, hInst, NULL); 189 button_exit = CreateWindow("BUTTON", "E&xit", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, WINWIDTH(rc) - 100, WINHEIGHT(rc) - WINHEIGHT(src) - 20, 100, 20, hWnd, (HMENU)GUI_BUTTON_EXIT, hInst, NULL); 183 190 logarea = CreateWindow("LISTBOX", NULL, WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | LBS_NOINTEGRALHEIGHT | LBS_NOSEL, 0, 40, WINWIDTH(rc) - 100, WINHEIGHT(rc) - 40 - WINHEIGHT(src), hWnd, (HMENU)GUI_LOG, hInst, NULL); 184 191 … … 186 193 187 194 SetTimer(hWnd, TIMER_WATCH_TEWI, 100, NULL); 188 } else if(msg == WM_TIMER){189 if(wp == TIMER_WATCH_TEWI) {190 if(idle) {191 } else if(tewi_alive){192 if(was_starting) {195 } else if(msg == WM_TIMER) { 196 if(wp == TIMER_WATCH_TEWI) { 197 if(idle) { 198 } else if(tewi_alive) { 199 if(was_starting) { 193 200 was_starting = FALSE; 194 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Started Tewi HTTPd");201 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Started Tewi HTTPd"); 195 202 } 196 203 EnableWindow(button_start, FALSE); 197 204 EnableWindow(button_stop, TRUE); 198 205 idle = TRUE; 199 } else{200 if(was_starting) {206 } else { 207 if(was_starting) { 201 208 was_starting = FALSE; 202 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Stopped Tewi HTTPd");209 SendMessage(status, SB_SETTEXT, 0, (LPARAM) "Stopped Tewi HTTPd"); 203 210 } 204 211 EnableWindow(button_start, TRUE); 205 212 EnableWindow(button_stop, FALSE); 206 if(exiting) {213 if(exiting) { 207 214 KillTimer(hWnd, TIMER_WATCH_TEWI); 208 215 SendMessage(hWnd, WM_CLOSE, 0, 0); … … 211 218 } 212 219 } 213 } else if(msg == WM_PAINT){220 } else if(msg == WM_PAINT) { 214 221 HDC hdc; 215 222 PAINTSTRUCT ps; … … 223 230 ShowBitmap(hWnd, hdc, "PBTEWI", 0, 0); 224 231 EndPaint(hWnd, &ps); 225 } else{232 } else { 226 233 return DefWindowProc(hWnd, msg, wp, lp); 227 234 } … … 229 236 } 230 237 231 BOOL InitApp(void) {238 BOOL InitApp(void) { 232 239 WNDCLASSEX wc; 233 240 wc.cbSize = sizeof(WNDCLASSEX); … … 246 253 } 247 254 248 BOOL InitWindow(int nCmdShow) {255 BOOL InitWindow(int nCmdShow) { 249 256 HWND hWnd; 250 257 RECT deskrc, rc; … … 253 260 hWnd = CreateWindow("tewihttpd", "Tewi HTTPd", (WS_OVERLAPPEDWINDOW ^ WS_THICKFRAME) ^ WS_MAXIMIZEBOX, 0, 0, 600, 400, NULL, 0, hInst, NULL); 254 261 255 if(!hWnd) {262 if(!hWnd) { 256 263 return FALSE; 257 264 } … … 263 270 } 264 271 265 int WINAPI WinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst, LPSTR lpsCmdLine, int nCmdShow) {272 int WINAPI WinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst, LPSTR lpsCmdLine, int nCmdShow) { 266 273 MSG msg; 267 274 BOOL bret; … … 272 279 idle = TRUE; 273 280 logfile = stderr; 274 if(!InitApp()) {275 return FALSE; 276 } 277 if(!InitWindow(nCmdShow)) {278 return FALSE; 279 } 280 281 while((bret = GetMessage(&msg, NULL, 0, 0)) != 0) {281 if(!InitApp()) { 282 return FALSE; 283 } 284 if(!InitWindow(nCmdShow)) { 285 return FALSE; 286 } 287 288 while((bret = GetMessage(&msg, NULL, 0, 0)) != 0) { 282 289 if(bret == -1) { 283 290 break; -
2.03E/Server/gui.h
r244 r254 15 15 #define GUI_LOG 109 16 16 #define GUI_BUTTON_EXIT 104 17 #define GUI_BUTTON_RESET 105 17 18 18 19 #define TIMER_WATCH_TEWI 1000 -
2.03E/Server/main.c
r253 r254 6 6 7 7 #ifdef __BORLANDC__ 8 9 #pragma resource "tewi_bcc.res"10 8 11 9 #pragma resource "gui_bcc.res" -
2.03E/Server/server.c
r253 r254 34 34 35 35 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 36 #ifndef NO_GET ADDRINFO36 #ifndef NO_GETNAMEINFO 37 37 #include <ws2tcpip.h> 38 38 #include <wspiapi.h> … … 64 64 #include <netinet/tcp.h> 65 65 #endif 66 #ifndef NO_GET ADDRINFO66 #ifndef NO_GETNAMEINFO 67 67 #include <netdb.h> 68 68 #endif … … 78 78 79 79 #ifndef S_ISDIR 80 #define S_ISDIR(x) ((x) &_S_IFDIR)80 #define S_ISDIR(x) ((x)&_S_IFDIR) 81 81 #endif 82 82 … … 494 494 struct tw_http_response res; 495 495 struct tw_tool tools; 496 #ifndef NO_GETADDRINFO 496 char* addrstr; 497 #ifndef NO_GETNAMEINFO 497 498 struct sockaddr* sa = (struct sockaddr*)&addr; 498 499 getnameinfo(sa, sizeof(addr), address, 512, NULL, 0, NI_NUMERICHOST); 499 500 #endif 500 address[0] = 0; 501 addrstr = inet_ntoa(addr.sin_addr); 502 strcpy(address, addrstr); 503 address[strlen(addrstr)] = 0; 501 504 #ifdef FREE_PTR 502 505 free(ptr); … … 1050 1053 } 1051 1054 } 1052 for(i = 0; i < sockcount; i++) {1055 for(i = 0; i < sockcount; i++) { 1053 1056 close_socket(sockets[i]); 1054 1057 } -
2.03E/Server/tw_version.h
r249 r254 8 8 #endif 9 9 10 #define TW_VERSION "2.03 D\0"11 #define TW_VERSION_TEXT "Tewi HTTPd version 2.03 D"10 #define TW_VERSION "2.03E\0" 11 #define TW_VERSION_TEXT "Tewi HTTPd version 2.03E" 12 12 13 13 const char* tw_get_version(void); -
2.03E/Tool/option.c
r249 r254 16 16 #endif 17 17 #ifdef BUILD_GUI 18 if(strcmp(argv[3], "WINDOWS_WATCOM") == 0) {18 if(strcmp(argv[3], "WINDOWS_WATCOM") == 0) { 19 19 printf(" -b nt_win"); 20 } else if(strcmp(argv[3], "WINDOWS") == 0){20 } else if(strcmp(argv[3], "WINDOWS") == 0) { 21 21 printf(" -mwindows"); 22 22 } … … 27 27 #endif 28 28 #ifdef BUILD_GUI 29 if(strcmp(argv[3], "WINDOWS_WATCOM") == 0) {29 if(strcmp(argv[3], "WINDOWS_WATCOM") == 0) { 30 30 printf(" -b nt_win"); 31 } else if(strcmp(argv[3], "WINDOWS") == 0){31 } else if(strcmp(argv[3], "WINDOWS") == 0) { 32 32 printf(" -mwindows"); 33 33 } … … 38 38 #endif 39 39 #ifdef BUILD_GUI 40 if(strcmp(argv[3], "WINDOWS") == 0 || strcmp(argv[3], "WINDOWS_WATCOM") == 0) {40 if(strcmp(argv[3], "WINDOWS") == 0 || strcmp(argv[3], "WINDOWS_WATCOM") == 0) { 41 41 printf(" gui.%s", argv[4]); 42 42 } … … 46 46 printf("-lssl -lcrypto"); 47 47 #endif 48 if(strcmp(argv[3], "WINDOWS") == 0) {48 if(strcmp(argv[3], "WINDOWS") == 0) { 49 49 #ifdef USE_WINSOCK1 50 50 printf(" -lwsock32"); … … 56 56 printf(" -luser32"); 57 57 #endif 58 } else if(strcmp(argv[3], "WINDOWS_WATCOM") == 0){58 } else if(strcmp(argv[3], "WINDOWS_WATCOM") == 0) { 59 59 #ifdef USE_WINSOCK1 60 60 printf(" wsock32.lib"); -
2.03E/config.h.tmpl
r253 r254 10 10 #define USE_POLL 11 11 #define HAS_CHROOT 12 #undef NO_GET ADDRINFO12 #undef NO_GETNAMEINFO 13 13 #undef USE_WINSOCK1 14 14 #undef BUILD_GUI … … 29 29 #endif 30 30 31 #if (defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)) && defined(USE_WINSOCK1) && !defined(NO_GET ADDRINFO)32 #define NO_GET ADDRINFO33 /* get addrinfo is not on winsock 1 */31 #if (defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)) && defined(USE_WINSOCK1) && !defined(NO_GETNAMEINFO) 32 #define NO_GETNAMEINFO 33 /* getnameinfo is not on winsock 1 */ 34 34 #endif 35 35 … … 39 39 #endif 40 40 41 #if (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)) && !defined(NO_GET ADDRINFO)42 #define NO_GET ADDRINFO43 /* Do not use get addrinfo */41 #if (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)) && !defined(NO_GETNAMEINFO) 42 #define NO_GETNAMEINFO 43 /* Do not use getnameinfo */ 44 44 #endif 45 45 … … 59 59 #endif 60 60 61 #if (defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__)) && !defined(NO_GET ADDRINFO)62 #define NO_GET ADDRINFO63 /* PSP/PS2/PS3 should not have get addrinfo */61 #if (defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__)) && !defined(NO_GETNAMEINFO) 62 #define NO_GETNAMEINFO 63 /* PSP/PS2/PS3 should not have getnameinfo */ 64 64 #endif 65 65 -
2.03E/make-installer.sh
r253 r254 27 27 cp install.exe ../install.exe 28 28 cd .. 29 rm -rf Tewi tewi.7z 30 7z x -oTewi install.exe 31 rm -rf Tewi/'$'* 32 7z a tewi.7z Tewi 33 rm -rf Tewi 29 34 rm tewi.exe 30 35 rm itworks.html
Note:
See TracChangeset
for help on using the changeset viewer.