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