mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-115119: Detect _decimal dependencies using pkg-config (#115406)
pkg-config is supported for libmpdec 4.0.0 and newer.
This commit is contained in:
parent
ab6eda0ee5
commit
c7e7bfc4ca
5 changed files with 211 additions and 104 deletions
|
|
@ -34,7 +34,19 @@
|
|||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "pycore_typeobject.h"
|
||||
#include "complexobject.h"
|
||||
#include "mpdecimal.h"
|
||||
|
||||
#include <mpdecimal.h>
|
||||
|
||||
// Reuse config from mpdecimal.h if present.
|
||||
#if defined(MPD_CONFIG_64)
|
||||
#ifndef CONFIG_64
|
||||
#define CONFIG_64 MPD_CONFIG_64
|
||||
#endif
|
||||
#elif defined(MPD_CONFIG_32)
|
||||
#ifndef CONFIG_32
|
||||
#define CONFIG_32 MPD_CONFIG_32
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <ctype.h> // isascii()
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue