[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] d3e8f9: w32: Add implementation of gmtime_r,

From: GitHub
Subject: [Qemu-commits] [qemu/qemu] d3e8f9: w32: Add implementation of gmtime_r, localtime_r
Date: Sun, 23 Sep 2012 10:30:08 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: d3e8f95753114a827f9cd8e819b1d5cc8333f76b
  Author: Stefan Weil <address@hidden>
  Date:   2012-09-23 (Sun, 23 Sep 2012)

  Changed paths:
    M oslib-win32.c
    M qemu-os-win32.h

  Log Message:
  w32: Add implementation of gmtime_r, localtime_r

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 memset.

The implementation which is used here is not strictly reentrant,
but sufficiently good for QEMU on w32 or w64.

Signed-off-by: Stefan Weil <address@hidden>
address@hidden: added comment about locking]
Signed-off-by: Blue Swirl <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]