From 722f38a10bcbb07ba13dbbaf4489c1241b107673 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Thu, 9 Feb 2023 13:21:15 +1000 Subject: build: fix check for isinf/isnan Needs to be #if not #ifdef for 'decl' checks. Otherwise build fails on systems without these. Signed-off-by: Steve Bennett --- jim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jim.c') diff --git a/jim.c b/jim.c index 38d8a70..68a703e 100644 --- a/jim.c +++ b/jim.c @@ -6176,11 +6176,11 @@ static const Jim_ObjType doubleObjType = { JIM_TYPE_NONE, }; -#ifndef HAVE_DECL_ISNAN +#if !HAVE_DECL_ISNAN #undef isnan #define isnan(X) ((X) != (X)) #endif -#ifndef HAVE_DECL_ISINF +#if !HAVE_DECL_ISINF #undef isinf #define isinf(X) (1.0 / (X) == 0.0) #endif -- cgit v1.1