Changeset 215 in Main for trunk/Server/strptime.c
- Timestamp:
- Oct 3, 2024, 4:24:43 AM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/strptime.c
r212 r215 36 36 //__RCSID("$NetBSD: strptime.c,v 1.62 2017/08/24 01:01:09 ginsbach Exp $"); 37 37 38 #if defined(__MINGW32__) || defined(_MSC_VER) 38 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) 39 39 40 40 #include <ctype.h> … … 104 104 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400) 105 105 106 #if def _MSC_VER106 #if defined(_MSC_VER) || defined(__BORLANDC__) 107 107 #define tzname _tzname 108 108 #define strncasecmp _strnicmp 109 #endif 110 111 #ifdef __BORLANDC__ 112 char* cm_strdup(const char* str); 113 114 int _strnicmp(const char* _a, const char* _b, int len){ 115 char* a = cm_strdup(_a); 116 char* b = cm_strdup(_b); 117 int i; 118 char* r; 119 for(i = 0; a[i] != 0; i++){ 120 a[i] = tolower(a[i]); 121 } 122 for(i = 0; b[i] != 0; i++){ 123 b[i] = tolower(b[i]); 124 } 125 r = strncmp(a, b, len); 126 free(a); 127 free(b); 128 return r; 129 } 109 130 #endif 110 131 … … 400 421 401 422 #ifndef TIME_MAX 402 #if def _MSC_VER423 #if defined(_MSC_VER) || defined(__BORLANDC__) 403 424 #define TIME_MAX INT32_MAX 404 425 #else … … 409 430 { 410 431 time_t sse = 0; 411 #if def _MSC_VER432 #if defined(_MSC_VER) || defined(__BORLANDC__) 412 433 uint32_t rulim = TIME_MAX; 413 434 #else … … 426 447 } while ((sse * 10 <= TIME_MAX) && 427 448 rulim && *bp >= '0' && *bp <= '9'); 428 #if def _MSC_VER449 #if defined(_MSC_VER) || defined(__BORLANDC__) 429 450 if (sse < 0 || (uint32_t)sse > TIME_MAX) { 430 451 #else … … 435 456 } 436 457 #ifdef _WIN32 437 #if def _MSC_VER458 #if defined(_MSC_VER) || defined(__BORLANDC__) 438 459 if (1) 439 460 #else
Note:
See TracChangeset
for help on using the changeset viewer.