[Webkit-unassigned] [Bug 34409] Use WTF::getLocalTime instead of localtime_r in FTPDirectoryDocument

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 1 08:12:02 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=34409





--- Comment #2 from Darin Adler <darin at apple.com>  2010-02-01 08:12:02 PST ---
(From update of attachment 47814)
> -#define localtime_r(x, y) localTimeQt(x, y)
> -#elif OS(WINDOWS) && !defined(localtime_r)
> -#if defined(_MSC_VER) && (_MSC_VER >= 1400) 
> -#define localtime_r(x, y) localtime_s((y), (x))
> -#else /* !_MSC_VER */ 
> -#define localtime_r(x,y) (localtime(x)?(*(y)=*localtime(x),(y)):0)
> -#endif
> +#define getLocalTime(x, y) localTimeQt(x, y)
>  #endif

What is this needed for? Doesn't the WTF getLocalTime work on Qt? If not, then
why not put the ifdefs in WTF's getCurrentTime function?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list