Skip to content

Commit 68de5e2

Browse files
committed
Swap to _PY naming to make this a private macro that follows the PY naming convention
1 parent 11e6c85 commit 68de5e2

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎Modules/_sqlite/connection.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ pysqlite_connection_get_changes(PyObject *op, void *Py_UNUSED(closure))
18221822
if (!pysqlite_check_connection(self)) {
18231823
return NULL;
18241824
}
1825-
#ifdef HAVE_SQLITE3_CHANGES64
1825+
#ifdef _PY_SQLITE_HAVE_CHANGES64
18261826
return PyLong_FromLongLong(sqlite3_changes64(self->db));
18271827
#else
18281828
return PyLong_FromLong(sqlite3_changes(self->db));

‎PC/pyconfig.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
731731
#define HAVE_SOCKET 1
732732

733733
/* Define to 1 if you have a usable 'sqlite3_changes64' function. */
734-
#define HAVE_SQLITE3_CHANGES64 1
734+
#define _PY_SQLITE_HAVE_CHANGES64 1
735735

736736
/* Define to 1 if you have the `dup' function. */
737737
#define HAVE_DUP 1

‎configure‎

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎configure.ac‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4838,6 +4838,7 @@ dnl hence CPPFLAGS instead of CFLAGS.
48384838
])
48394839
dnl Reject APIs unavailable on the deployment target, even if they link.
48404840
CFLAGS="$CFLAGS $CFLAGS_NODIST"
4841+
LDFLAGS="$LDFLAGS $LDFLAGS_NODIST"
48414842
AC_CACHE_CHECK([for usable sqlite3_changes64],
48424843
[ac_cv_lib_sqlite3_sqlite3_changes64], [
48434844
AC_LINK_IFELSE([
@@ -4848,7 +4849,7 @@ dnl hence CPPFLAGS instead of CFLAGS.
48484849
[ac_cv_lib_sqlite3_sqlite3_changes64=no])
48494850
])
48504851
AS_VAR_IF([ac_cv_lib_sqlite3_sqlite3_changes64], [yes], [
4851-
AC_DEFINE([HAVE_SQLITE3_CHANGES64], [1],
4852+
AC_DEFINE([_PY_SQLITE_HAVE_CHANGES64], [1],
48524853
[Define to 1 if you have a usable 'sqlite3_changes64' function.])
48534854
])
48544855
], [

‎pyconfig.h.in‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,9 +1266,6 @@
12661266
/* Define to 1 if you have the 'splice' function. */
12671267
#undef HAVE_SPLICE
12681268

1269-
/* Define to 1 if you have a usable 'sqlite3_changes64' function. */
1270-
#undef HAVE_SQLITE3_CHANGES64
1271-
12721269
/* Define to 1 if the system has the type 'ssize_t'. */
12731270
#undef HAVE_SSIZE_T
12741271

@@ -2030,6 +2027,9 @@
20302027
/* Maximum length in bytes of a thread name */
20312028
#undef _PYTHREAD_NAME_MAXLEN
20322029

2030+
/* Define to 1 if you have a usable 'sqlite3_changes64' function. */
2031+
#undef _PY_SQLITE_HAVE_CHANGES64
2032+
20332033
/* Defined if _Complex C type can be used with libffi. */
20342034
#undef _Py_FFI_SUPPORT_C_COMPLEX
20352035

0 commit comments

Comments
 (0)