From 542fc504091107dbc65e75497fa4070bc91c6c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20W=C3=B6hrl?= Date: Thu, 17 Nov 2016 20:41:46 -0800 Subject: [PATCH] do not redefine isnan if already defined via math.h Summary: ```isnan``` is already defined in ```math.h``` (at least when using VS13) so there is no need to redefine it. it also is a nan for float and not for double opposed to ```_isnan``` Closes https://github.com/facebook/css-layout/pull/253 Reviewed By: emilsjolander Differential Revision: D4199331 Pulled By: splhack fbshipit-source-id: 139fb0efd68dd5df79bbaef863a8e8b9246c795d --- CSSLayout/CSSLayout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CSSLayout/CSSLayout.c b/CSSLayout/CSSLayout.c index e656eeb7..958af3e2 100644 --- a/CSSLayout/CSSLayout.c +++ b/CSSLayout/CSSLayout.c @@ -14,7 +14,9 @@ #ifdef _MSC_VER #include +#ifndef isnan #define isnan _isnan +#endif #ifndef __cplusplus #define inline __inline