From 37a77c2dcbbae5d05d669479822012d125a289dd Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Tue, 29 Nov 2011 22:41:29 +1030 Subject: Suppress isinf() define when it already exists --- lua_cjson.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua_cjson.c b/lua_cjson.c index 8efd127..2759d59 100644 --- a/lua_cjson.c +++ b/lua_cjson.c @@ -86,8 +86,8 @@ #endif -/* Some Solaris platforms are missing isinf(). */ -#if defined(USE_INTERNAL_ISINF) || defined(MISSING_ISINF) +/* Workaround for Solaris platforms missing isinf() */ +#if !defined(isinf) && (defined(USE_INTERNAL_ISINF) || defined(MISSING_ISINF)) #define isinf(x) (!isnan(x) && isnan((x) - (x))) #endif -- cgit v1.2.3-55-g6feb