summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 16:53:50 (GMT)
committerGitHub <noreply@github.com>2023-08-24 16:53:50 (GMT)
commitc55e73112c7b0574d05a522015d0c927de266525 (patch)
tree8f1035a646c7b94afc0c1f2c250d009c99a37f36 /Modules/_sqlite
parent7f316763402a7d5556deecc3acd06cb719e189b3 (diff)
downloadcpython-c55e73112c7b0574d05a522015d0c927de266525.zip
cpython-c55e73112c7b0574d05a522015d0c927de266525.tar.gz
cpython-c55e73112c7b0574d05a522015d0c927de266525.tar.bz2
gh-106320: Remove private PyLong C API functions (#108429)
Remove private PyLong C API functions: * _PyLong_AsByteArray() * _PyLong_DivmodNear() * _PyLong_Format() * _PyLong_Frexp() * _PyLong_FromByteArray() * _PyLong_FromBytes() * _PyLong_GCD() * _PyLong_Lshift() * _PyLong_Rshift() Move these functions to the internal C API. No longer export _PyLong_FromBytes() function.
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_sqlite/util.c b/Modules/_sqlite/util.c
index 2b3bbfe..833a666 100644
--- a/Modules/_sqlite/util.c
+++ b/Modules/_sqlite/util.c
@@ -21,7 +21,12 @@
* 3. This notice may not be removed or altered from any source distribution.
*/
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
+
#include "module.h"
+#include "pycore_long.h" // _PyLong_AsByteArray()
#include "connection.h"
// Returns non-NULL if a new exception should be raised