Subversion Repositories Tewi

Rev

Rev 382 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 382 Rev 402
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
//#include <sys/cdefs.h>
35
//#include <sys/cdefs.h>
36
//__RCSID("$NetBSD: strptime.c,v 1.62 2017/08/24 01:01:09 ginsbach Exp $");
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) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) || defined(__bsdi__)
38
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) || defined(__bsdi__) || defined(__amiga__)
39
 
39
 
40
#include <stdlib.h>
40
#include <stdlib.h>
41
#include <ctype.h>
41
#include <ctype.h>
42
#include <string.h>
42
#include <string.h>
43
#include <time.h>
43
#include <time.h>
Line 113... Line 113...
113
#if defined(_MSC_VER) || defined(__BORLANDC__)
113
#if defined(_MSC_VER) || defined(__BORLANDC__)
114
#define tzname              _tzname
114
#define tzname              _tzname
115
#define strncasecmp         _strnicmp
115
#define strncasecmp         _strnicmp
116
#endif
116
#endif
117
 
117
 
118
#ifdef __WATCOMC__
118
#if defined(__WATCOMC__)
119
#define _tzset tzset
119
#define _tzset tzset
120
#endif
120
#endif
121
 
121
 
122
#if defined(__BORLANDC__) || defined(__NETWARE__)
122
#if defined(__BORLANDC__) || defined(__NETWARE__)
123
char* cm_strdup(const char* str);
123
char* cm_strdup(const char* str);
Line 467... Line 467...
467
                if (sse < 0 || (uint64_t)sse > TIME_MAX) {
467
                if (sse < 0 || (uint64_t)sse > TIME_MAX) {
468
#endif
468
#endif
469
                    bp = NULL;
469
                    bp = NULL;
470
                    continue;
470
                    continue;
471
                }
471
                }
472
#if defined(_WIN32) || defined(__OS2__) || defined(__NeXT__) || defined(__DOS__)
472
#if defined(_WIN32) || defined(__OS2__) || defined(__NeXT__) || defined(__DOS__) || defined(__amiga__)
473
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__)
473
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) || defined(__amiga__)
474
		if (1)
474
		if (1)
475
#else
475
#else
476
                if (localtime_s(tm, &sse) == 0)
476
                if (localtime_s(tm, &sse) == 0)
477
#endif
477
#endif
478
#else
478
#else
Line 558... Line 558...
558
 
558
 
559
        case 'Z':       // time zone name
559
        case 'Z':       // time zone name
560
        case 'z':       //
560
        case 'z':       //
561
#ifdef _WIN32
561
#ifdef _WIN32
562
            _tzset();
562
            _tzset();
-
 
563
#elif defined(__amiga__)
563
#else
564
#else
564
            tzset();
565
            tzset();
565
#endif
566
#endif
566
            mandatory = c == 'z';
567
            mandatory = c == 'z';
567
            /*
568
            /*