From 155c6eb143fd7a3e5ba699a3f6993d2d969dd5cc Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 23 Jul 2023 16:15:35 +0900 Subject: [PATCH] Enable significand on macOS --- src/builtin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/builtin.c b/src/builtin.c index b38d4c2f4f..c71272f8c6 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -199,8 +199,7 @@ static jv f_ ## name(jq_state *jq, jv input, jv a, jv b, jv c) { \ #undef LIBM_DDD #undef LIBM_DD -#ifdef __APPLE__ // Clean up after ourselves -#undef HAVE_CUSTOM_SIGNIFICAND +#ifdef __APPLE__ #undef gamma #undef drem #undef significand @@ -1853,6 +1852,9 @@ static const char jq_builtins[] = #undef LIBM_DDD #undef LIBM_DD +#ifdef __APPLE__ +#undef HAVE_CUSTOM_SIGNIFICAND +#endif static block gen_builtin_list(block builtins) { jv list = jv_array_append(block_list_funcs(builtins, 1), jv_string("builtins/0"));