ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/tewi/Server/strptime.c
(Generate patch)

Comparing Server/strptime.c (file contents):
Revision 1.2 by nishi, Thu Oct 17 10:18:01 2024 UTC vs.
Revision 1.5 by nishi, Sun Nov 3 10:40:12 2024 UTC

# Line 35 | Line 35
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>
# Line 115 | Line 115 | static const unsigned char *find_string(
115   #define strncasecmp         _strnicmp
116   #endif
117  
118 < #ifdef __WATCOMC__
118 > #if defined(__WATCOMC__)
119   #define _tzset tzset
120   #endif
121  
# Line 435 | Line 435 | recurse:
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
# Line 469 | Line 469 | recurse:
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)
# Line 560 | Line 560 | recurse:
560          case 'z':       //
561   #ifdef _WIN32
562              _tzset();
563 + #elif defined(__amiga__)
564   #else
565              tzset();
566   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines