diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-03-13 15:33:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-13 15:33:39 (GMT) |
commit | 2256a2876b5214a5a7492bf78bd86cf8beb690bf (patch) | |
tree | 6cd58f558204fbf45306c2734abeb784cdcf9c3a /Modules/_sqlite | |
parent | 75048c8a38005845f10f8cb1dd33a31e0052cae0 (diff) | |
download | cpython-2256a2876b5214a5a7492bf78bd86cf8beb690bf.zip cpython-2256a2876b5214a5a7492bf78bd86cf8beb690bf.tar.gz cpython-2256a2876b5214a5a7492bf78bd86cf8beb690bf.tar.bz2 |
bpo-43444: Move sqlite3 MODULE_NAME from setup.py to module.h (GH-24801)
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r-- | Modules/_sqlite/cache.h | 3 | ||||
-rw-r--r-- | Modules/_sqlite/module.h | 1 | ||||
-rw-r--r-- | Modules/_sqlite/prepare_protocol.h | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/Modules/_sqlite/cache.h b/Modules/_sqlite/cache.h index 4a1977f..083356f 100644 --- a/Modules/_sqlite/cache.h +++ b/Modules/_sqlite/cache.h @@ -23,8 +23,7 @@ #ifndef PYSQLITE_CACHE_H #define PYSQLITE_CACHE_H -#define PY_SSIZE_T_CLEAN -#include "Python.h" +#include "module.h" /* The LRU cache is implemented as a combination of a doubly-linked with a * dictionary. The list items are of type 'Node' and the dictionary has the diff --git a/Modules/_sqlite/module.h b/Modules/_sqlite/module.h index 3185ec9..9aede92 100644 --- a/Modules/_sqlite/module.h +++ b/Modules/_sqlite/module.h @@ -27,6 +27,7 @@ #include "Python.h" #define PYSQLITE_VERSION "2.6.0" +#define MODULE_NAME "sqlite3" extern PyObject* pysqlite_Error; extern PyObject* pysqlite_Warning; diff --git a/Modules/_sqlite/prepare_protocol.h b/Modules/_sqlite/prepare_protocol.h index 42d07cb..5939613 100644 --- a/Modules/_sqlite/prepare_protocol.h +++ b/Modules/_sqlite/prepare_protocol.h @@ -23,8 +23,7 @@ #ifndef PYSQLITE_PREPARE_PROTOCOL_H #define PYSQLITE_PREPARE_PROTOCOL_H -#define PY_SSIZE_T_CLEAN -#include "Python.h" +#include "module.h" typedef struct { |