Subversion Repositories Tewi

Rev

Rev 219 | Rev 242 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 219 Rev 241
Line 39... Line 39...
39
 
39
 
40
#include <ctype.h>
40
#include <ctype.h>
41
#include <string.h>
41
#include <string.h>
42
#include <time.h>
42
#include <time.h>
43
#include <stdint.h>
43
#include <stdint.h>
-
 
44
#include <strings.h>
44
 
45
 
45
static const unsigned char *conv_num(const unsigned char *, int *, unsigned int, unsigned int);
46
static const unsigned char *conv_num(const unsigned char *, int *, unsigned int, unsigned int);
46
static const unsigned char *find_string(const unsigned char *, int *, const char * const *, const char * const *, int);
47
static const unsigned char *find_string(const unsigned char *, int *, const char * const *, const char * const *, int);
47
 
48
 
48
/*
49
/*
Line 106... Line 107...
106
#if defined(_MSC_VER) || defined(__BORLANDC__)
107
#if defined(_MSC_VER) || defined(__BORLANDC__)
107
#define tzname              _tzname
108
#define tzname              _tzname
108
#define strncasecmp         _strnicmp
109
#define strncasecmp         _strnicmp
109
#endif
110
#endif
110
 
111
 
-
 
112
#ifdef __WATCOMC__
-
 
113
#define _tzset tzset
-
 
114
#endif
-
 
115
 
111
#ifdef __BORLANDC__
116
#ifdef __BORLANDC__
112
char* cm_strdup(const char* str);
117
char* cm_strdup(const char* str);
113
 
118
 
114
int _strnicmp(const char* _a, const char* _b, int len){
119
int _strnicmp(const char* _a, const char* _b, int len){
115
	char* a = cm_strdup(_a);
120
	char* a = cm_strdup(_a);
Line 453... Line 458...
453
#endif
458
#endif
454
                    bp = NULL;
459
                    bp = NULL;
455
                    continue;
460
                    continue;
456
                }
461
                }
457
#ifdef _WIN32
462
#ifdef _WIN32
458
#if defined(_MSC_VER) || defined(__BORLANDC__)
463
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
459
		if (1)
464
		if (1)
460
#else
465
#else#
461
                if (localtime_s(tm, &sse) == 0)
466
                if (localtime_s(tm, &sse) == 0)
462
#endif
467
#endif
463
#else
468
#else
464
                if (localtime_r(&sse, tm))
469
                if (localtime_r(&sse, tm))
465
#endif
470
#endif