mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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.
This commit is contained in:
parent
5a8d121a1f
commit
015efdbef7
2 changed files with 5 additions and 6 deletions
|
@ -56,6 +56,11 @@
|
|||
|
||||
#define BOUNDS_CHECK(x, MIN, MAX) x = (x < MIN || MAX < x) ? MAX : x
|
||||
|
||||
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
|
||||
#define UNUSED __attribute__((unused))
|
||||
#else
|
||||
#define UNUSED
|
||||
#endif
|
||||
|
||||
/* _Py_DEC_MINALLOC >= MPD_MINALLOC */
|
||||
#define _Py_DEC_MINALLOC 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue