From 720b41781fc39ef99f52826ccb50f2d9cfa37b22 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 3 Oct 2024 06:13:22 +0000 Subject: [PATCH] fix some warning git-svn-id: file:///raid/svn-personal/tewi/trunk@241 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/strptime.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Server/strptime.c b/Server/strptime.c index feea882..a2341dd 100644 --- a/Server/strptime.c +++ b/Server/strptime.c @@ -41,6 +41,7 @@ #include #include #include +#include static const unsigned char *conv_num(const unsigned char *, int *, unsigned int, unsigned int); static const unsigned char *find_string(const unsigned char *, int *, const char * const *, const char * const *, int); @@ -108,6 +109,10 @@ static const unsigned char *find_string(const unsigned char *, int *, const char #define strncasecmp _strnicmp #endif +#ifdef __WATCOMC__ +#define _tzset tzset +#endif + #ifdef __BORLANDC__ char* cm_strdup(const char* str); @@ -455,9 +460,9 @@ recurse: continue; } #ifdef _WIN32 -#if defined(_MSC_VER) || defined(__BORLANDC__) +#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) if (1) -#else +#else# if (localtime_s(tm, &sse) == 0) #endif #else -- 2.43.0