Re: [Qemu-devel] [PATCH] w32: Add implementation of gmtime_r, localtime_r

2012-09-23 Thread Blue Swirl
On Sat, Sep 22, 2012 at 8:26 PM, Stefan Weil wrote: > Those functions are missing in MinGW. > > Some versions of MinGW-w64 include defines for gmtime_r and localtime_r. > Older versions of these macros are buggy (they return a pointer to a > static variable), therefore we don't want them. Newer ve

Re: [Qemu-devel] [PATCH] w32: Add implementation of gmtime_r, localtime_r

2012-09-23 Thread Blue Swirl
On Sun, Sep 23, 2012 at 4:27 PM, Stefan Weil wrote: >> On Sat, Sep 22, 2012 at 8:26 PM, Stefan Weil wrote: >>> Those functions are missing in MinGW. >>> >>> Some versions of MinGW-w64 include defines for gmtime_r and localtime_r. >>> Older versions of these macros are buggy (they return a pointer

Re: [Qemu-devel] [PATCH] w32: Add implementation of gmtime_r, localtime_r

2012-09-23 Thread Stefan Weil
> On Sat, Sep 22, 2012 at 8:26 PM, Stefan Weil wrote: >> Those functions are missing in MinGW. >> >> Some versions of MinGW-w64 include defines for gmtime_r and localtime_r. >> Older versions of these macros are buggy (they return a pointer to a >> static variable), therefore we don't want them. N

Re: [Qemu-devel] [PATCH] w32: Add implementation of gmtime_r, localtime_r

2012-09-23 Thread Blue Swirl
On Sat, Sep 22, 2012 at 8:26 PM, Stefan Weil wrote: > Those functions are missing in MinGW. > > Some versions of MinGW-w64 include defines for gmtime_r and localtime_r. > Older versions of these macros are buggy (they return a pointer to a > static variable), therefore we don't want them. Newer ve

[Qemu-devel] [PATCH] w32: Add implementation of gmtime_r, localtime_r

2012-09-22 Thread Stefan Weil
Those functions are missing in MinGW. Some versions of MinGW-w64 include defines for gmtime_r and localtime_r. Older versions of these macros are buggy (they return a pointer to a static variable), therefore we don't want them. Newer versions are similar to the code used here, but without the mems