]> Nishi Git Mirror - tewi.git/commitdiff
trying to fix bsdi port
authorNishi <nishi@nishi.boats>
Thu, 17 Oct 2024 10:27:18 +0000 (10:27 +0000)
committerNishi <nishi@nishi.boats>
Thu, 17 Oct 2024 10:27:18 +0000 (10:27 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@382 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/strptime.c
VC6Compat/stdint.h

index 10954c60a504a7616c09b4c766932a9bca037eb6..b7630232791a881ec573f73b839d32082cc92780 100644 (file)
@@ -435,7 +435,7 @@ recurse:
             continue;
 
 #ifndef TIME_MAX
-#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__NETWARE__) || defined(__NeXT__)
+#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__NETWARE__) || defined(__NeXT__) || defined(__bsdi__)
 #define TIME_MAX       INT32_MAX
 #else
 #define TIME_MAX       INT64_MAX
index 58c0d03b22bdce97daadd89c380c585cdbeb6368..32725c48fc8b5d098fc0176794ecded9285fb4c4 100644 (file)
@@ -9,6 +9,8 @@ typedef u_int8_t uint8_t;
 typedef u_int16_t uint16_t;
 typedef u_int32_t uint32_t;
 typedef u_int64_t uint64_t;
+
+#define INT32_MAX 0x7fffffff
 #else
 typedef unsigned char uint8_t;
 typedef unsigned short uint16_t;