]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41302: Fix build with system libmpdec (GH-21481)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Jul 2020 13:01:10 +0000 (06:01 -0700)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2020 13:01:10 +0000 (06:01 -0700)
commit8ca63f95f769c31f65a996fe065ff6dcfb490bbe
tree06bfdb94ec9d5d37a3b56c6d312a89771b423954
parentf3232294ee695492f43d424cc6969d018d49861d
bpo-41302: Fix build with system libmpdec (GH-21481)

Move definition of UNUSED from modified headers of libmpdec to
_decimal.c itself. This makes the vendored source closer to the
standalone library and fixes build with --with-system-libmpdec.

Tested to build fine with either system libmpdec or the vendored one.
(cherry picked from commit 015efdbef7454a522e88cd79ba2b4cd77a5fb2a2)

Co-authored-by: Felix Yan <felixonmars@archlinux.org>
Modules/_decimal/_decimal.c
Modules/_decimal/libmpdec/mpdecimal.h