wined3d: Fix build with MSVC (try 2).

Stefan Dösinger stefandoesinger at
Sun Apr 29 05:05:45 CDT 2012

Am Samstag, 28. April 2012, 10:16:13 schrieb Thomas Faber:
> Apparently NAN and INFINITE are C99 as well (I should really get a
> version of the old standard instead of mostly reading C99 :|).
> How about a simple const variable that will trick MSVC, while not
> changing semantics.
How about a function in libs/port or a macro in one of its headers? I believe 
the NAN/INFINITE issue is not specific to wined3d.

With the const variable, msvc compiles the code, but still produces a warning.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the wine-devel mailing list