35 |
|
//#include <sys/cdefs.h> |
36 |
|
//__RCSID("$NetBSD: strptime.c,v 1.62 2017/08/24 01:01:09 ginsbach Exp $"); |
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 |
|
|
40 |
|
#include <stdlib.h> |
41 |
|
#include <ctype.h> |
115 |
|
#define strncasecmp _strnicmp |
116 |
|
#endif |
117 |
|
|
118 |
< |
#ifdef __WATCOMC__ |
118 |
> |
#if defined(__WATCOMC__) |
119 |
|
#define _tzset tzset |
120 |
|
#endif |
121 |
|
|
435 |
|
continue; |
436 |
|
|
437 |
|
#ifndef TIME_MAX |
438 |
< |
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__NETWARE__) || defined(__NeXT__) |
438 |
> |
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__NETWARE__) || defined(__NeXT__) || defined(__bsdi__) |
439 |
|
#define TIME_MAX INT32_MAX |
440 |
|
#else |
441 |
|
#define TIME_MAX INT64_MAX |
469 |
|
bp = NULL; |
470 |
|
continue; |
471 |
|
} |
472 |
< |
#if defined(_WIN32) || defined(__OS2__) || defined(__NeXT__) || defined(__DOS__) |
473 |
< |
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) |
472 |
> |
#if defined(_WIN32) || defined(__OS2__) || defined(__NeXT__) || defined(__DOS__) || defined(__amiga__) |
473 |
> |
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) || defined(__amiga__) |
474 |
|
if (1) |
475 |
|
#else |
476 |
|
if (localtime_s(tm, &sse) == 0) |
560 |
|
case 'z': // |
561 |
|
#ifdef _WIN32 |
562 |
|
_tzset(); |
563 |
+ |
#elif defined(__amiga__) |
564 |
|
#else |
565 |
|
tzset(); |
566 |
|
#endif |