From f38b08af9155cac52007c1ee1053a467f8054a4b Mon Sep 17 00:00:00 2001 From: "wax@kishkin.ru" <> Date: Tue, 17 Feb 2004 05:09:42 +0500 Subject: [PATCH] correct cleaning of TZ add a check of the version Visual C --- mysys/my_init.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mysys/my_init.c b/mysys/my_init.c index d68af1400c5..a7899c20442 100644 --- a/mysys/my_init.c +++ b/mysys/my_init.c @@ -242,8 +242,13 @@ static void my_win_init(void) setlocale(LC_CTYPE, ""); /* To get right sortorder */ - /* Clear the OS system variable TZ and avoid the 100% CPU usage */ +#if defined(_MSC_VER) && (_MSC_VER < 1300) + /* + Clear the OS system variable TZ and avoid the 100% CPU usage + Only for old versions of Visual C++ + */ _putenv( "TZ=" ); +#endif _tzset(); /* apre la chiave HKEY_LOCAL_MACHINES\software\MySQL */ -- 2.30.9