aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2022-08-29 15:25:12 +1000
committerSteve Bennett <steveb@workware.net.au>2022-09-18 10:52:51 +1000
commit0545f4c08c65836104d0373879b5173d885ee9a4 (patch)
treec538b4bc9557a2b17e8a60daee98c2b4ac960b26 /jim.c
parent5dbb37089d94b61c34ee5b1da4747c365b5f5072 (diff)
downloadjimtcl-0545f4c08c65836104d0373879b5173d885ee9a4.zip
jimtcl-0545f4c08c65836104d0373879b5173d885ee9a4.tar.gz
jimtcl-0545f4c08c65836104d0373879b5173d885ee9a4.tar.bz2
build: isinf and isnan are macros in C
So don't try to find them as functions Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jim.c b/jim.c
index d6005d8..73c10ae 100644
--- a/jim.c
+++ b/jim.c
@@ -6164,11 +6164,11 @@ static const Jim_ObjType doubleObjType = {
JIM_TYPE_NONE,
};
-#ifndef HAVE_ISNAN
+#ifndef HAVE_DECL_ISNAN
#undef isnan
#define isnan(X) ((X) != (X))
#endif
-#ifndef HAVE_ISINF
+#ifndef HAVE_DECL_ISINF
#undef isinf
#define isinf(X) (1.0 / (X) == 0.0)
#endif