[m-rev.] diff: define MR_is_{nan, infinite, finite} as macros with VS2013

Julien Fischer jfischer at opturion.com
Mon Dec 22 17:25:40 AEDT 2014


On Mon, Dec 22, 2014 at 5:22 PM, Julien Fischer <jfischer at opturion.com>
wrote:

>
> Define MR_is_{nan,infinite,finite} as macros with VS2013.
>
> This is a follow-up to commit fff5759.  If we are using C99 we define
> MR_is_{nan,infinite,finite} as macros.  We should do the same for MSVC
> version
> 1800 (VS2013) and onwards and the only reason we didn't already is that
> MSVC
> doesn't define the __STDC_VERSION__ macro appropriately.
>
> runtime/mercury_float.h:
>     Define MR_is_{nan,infinite,finite} as macros with MSVC version 1800
>     and onwards.
>

There was supposed to be a second change listed here: since isnan and
friends
in C99 are type-generic we can simplify some of the existing code.  I've
amended
the log message.

Cheers,
Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20141222/d60c2e29/attachment.html>


More information about the reviews mailing list