Mercurial > pidgin
comparison libpurple/win32/win32dep.c @ 20685:02df6998b466
propagate from branch 'im.pidgin.rlaager.merging.2_2_1_conflicts' (head 4ad1081695d083df424898e6e7091f731b401265)
to branch 'im.pidgin.pidgin' (head d33243e8f5347776c81f81a0e4ba3a76ae5505a5)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 28 Sep 2007 16:34:43 +0000 |
parents | afcde99c9651 73b18278c04e |
children | 3cc856ca2338 |
comparison
equal
deleted
inserted
replaced
20258:509ca8ebe515 | 20685:02df6998b466 |
---|---|
573 app_data_dir = NULL; | 573 app_data_dir = NULL; |
574 | 574 |
575 libpurpledll_hInstance = NULL; | 575 libpurpledll_hInstance = NULL; |
576 } | 576 } |
577 | 577 |
578 long | |
579 wpurple_get_tz_offset() { | |
580 TIME_ZONE_INFORMATION tzi; | |
581 DWORD ret; | |
582 long off = -1; | |
583 | |
584 if ((ret = GetTimeZoneInformation(&tzi)) != TIME_ZONE_ID_INVALID) | |
585 { | |
586 off = -(tzi.Bias * 60); | |
587 if (ret == TIME_ZONE_ID_DAYLIGHT) | |
588 off -= tzi.DaylightBias * 60; | |
589 } | |
590 | |
591 return off; | |
592 } | |
593 | |
578 /* DLL initializer */ | 594 /* DLL initializer */ |
579 /* suppress gcc "no previous prototype" warning */ | 595 /* suppress gcc "no previous prototype" warning */ |
580 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved); | 596 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved); |
581 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { | 597 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { |
582 libpurpledll_hInstance = hinstDLL; | 598 libpurpledll_hInstance = hinstDLL; |