Gijs Vermeulen : msvcrt: Avoid compiler warning.

Alexandre Julliard julliard at winehq.org
Tue Nov 26 16:21:25 CST 2019


Module: wine
Branch: master
Commit: cb7f92117764ae42cf7ab10d5fac67a865abbd1b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=cb7f92117764ae42cf7ab10d5fac67a865abbd1b

Author: Gijs Vermeulen <gijsvrm at codeweavers.com>
Date:   Tue Nov 26 17:49:19 2019 +0100

msvcrt: Avoid compiler warning.

Signed-off-by: Gijs Vermeulen <gijsvrm at codeweavers.com>
Signed-off-by: Jeff Smith <whydoubt at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/time.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/msvcrt/time.c b/dlls/msvcrt/time.c
index 0d5b64a4aa..592b049107 100644
--- a/dlls/msvcrt/time.c
+++ b/dlls/msvcrt/time.c
@@ -1170,6 +1170,7 @@ static inline BOOL strftime_format(STRFTIME_CHAR *str, MSVCRT_size_t *pos, MSVCR
     return ret;
 }
 
+#if _MSVCR_VER>=140
 static inline BOOL strftime_tzdiff(STRFTIME_CHAR *str, MSVCRT_size_t *pos, MSVCRT_size_t max, BOOL is_dst)
 {
     MSVCRT_long tz = MSVCRT___timezone + (is_dst ? MSVCRT__dstbias : 0);
@@ -1188,6 +1189,7 @@ static inline BOOL strftime_tzdiff(STRFTIME_CHAR *str, MSVCRT_size_t *pos, MSVCR
         return FALSE;
     return strftime_int(str, pos, max, tz/60%60, 2, 0, 59);
 }
+#endif
 
 static MSVCRT_size_t strftime_impl(STRFTIME_CHAR *str, MSVCRT_size_t max,
         const STRFTIME_CHAR *format, const struct MSVCRT_tm *mstm,




More information about the wine-cvs mailing list