qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Redundant redeclaration of 'gmtime_r' with mingw64


From: Stefan Weil
Subject: Re: [Qemu-devel] Redundant redeclaration of 'gmtime_r' with mingw64
Date: Mon, 08 Jun 2015 17:52:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

Am 08.06.2015 um 11:21 schrieb Stefan Hajnoczi:
On Fri, Jun 05, 2015 at 07:18:53PM +0200, Stefan Weil wrote:

The version provided by Debian Jessie (mingw-w64 3.2.0)
still uses macros to implement those functions - that's why
I don't see that compiler warnings.

I'd prefer a solution which conditionally includes the QEMU
declaration (include/sysemu/os-win32.h) and the implementation
(util/oslib-win32.c), either depending on the mingw-w64 version
or on the result of a configuration check done while running
configure.
Does that mean you want:

1. gmtime() is a macro - use QEMU implementation
2. gmtime() is a function - use mingw function

= declared via time.h and implemented in a standard library.

3. gmtime() is undefined - use QEMU implementation

?

Yes, exactly.




reply via email to

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