diff options
author | unknown <wax@kishkin.ru> | 2004-02-17 05:09:42 +0500 |
---|---|---|
committer | unknown <wax@kishkin.ru> | 2004-02-17 05:09:42 +0500 |
commit | edf449e56e89db0e98f8636fe28fff607989b71d (patch) | |
tree | e9950aa4b1b295614c815522af56806d66b089de /mysys | |
parent | 70eef0cb05296b7c60c7dbc32811d306675e997a (diff) | |
download | mariadb-git-edf449e56e89db0e98f8636fe28fff607989b71d.tar.gz |
correct cleaning of TZ
add a check of the version Visual C
mysys/my_init.c:
add a check of version Visual C
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_init.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 */ |