Skip to content

Commit

Permalink
Enable significand on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny authored and nicowilliams committed Jul 23, 2023
1 parent 99a381b commit 123c780
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"));
Expand Down

0 comments on commit 123c780

Please sign in to comment.