]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41302: Fix build with system libmpdec (GH-21481)
authorFelix Yan <felixonmars@archlinux.org>
Wed, 15 Jul 2020 12:14:11 +0000 (20:14 +0800)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2020 12:14:11 +0000 (14:14 +0200)
commit015efdbef7454a522e88cd79ba2b4cd77a5fb2a2
tree2a7242f42cb583fcd7623fbbcf426e8e08eed6f8
parent5a8d121a1f3ef5ad7c105ee378cc79a3eac0c7d4
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.
Modules/_decimal/_decimal.c
Modules/_decimal/libmpdec/mpdecimal.h