Hi Stefan,
I get the following compiler warning in Fedora 22
(mingw32-headers-4.0.2-1.fc22):
In file included from qemu/include/qemu-common.h:47:0,
from qemu/include/qemu/timer.h:5,
from qemu/include/sysemu/sysemu.h:8,
from os-win32.c:34:
qemu/include/sysemu/os-win32.h:77:12: warning: redundant redeclaration
of 'gmtime_r' [-Wredundant-decls]
struct tm *gmtime_r(const time_t *timep, struct tm *result);
^
In file included from os-win32.c:30:0:
/usr/i686-w64-mingw32/sys-root/mingw/include/time.h:272:107: note:
previous definition of 'gmtime_r' was here
QEMU has its own (non-reentrant) gmtime_r() and localtime_r()
functions on Windows. os-win32.h redefines the functions so the
compiler is right to complain.
I thought about adding qemu_gmtime_r() and qemu_localtime_r()
functions to avoid the name clash.
Do you have any new thoughts on this commit which introduced the
os-win32.h definitions?