mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
correct cleaning of TZ
add a check of the version Visual C mysys/my_init.c: add a check of version Visual C
This commit is contained in:
parent
70eef0cb05
commit
edf449e56e
1 changed files with 6 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue