aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Objects/stringlib/join.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-07 01:26:58 +0100
committerGitHub <noreply@github.com>2022-02-07 01:26:58 +0100
commit097f74a5a37e2a8a26d529cede456ede7011b66f (patch)
tree9fcb89d8fe4944fea4da359e94d3b8ce16f263aa /Objects/stringlib/join.h
parent16f96a4cf9ab1e91e6e8e18232378bc4b42bb796 (diff)
downloadcpython-097f74a5a37e2a8a26d529cede456ede7011b66f.tar.gz
cpython-097f74a5a37e2a8a26d529cede456ede7011b66f.zip
bpo-46670: Define all macros for stringlib (GH-31176)
bytesobject.c, bytearrayobject.c and unicodeobject.c now define all macros used by stringlib, to avoid using undefined macros. Fix "gcc -Wundef" warnings.
Diffstat (limited to 'Objects/stringlib/join.h')
-rw-r--r--Objects/stringlib/join.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/join.h b/Objects/stringlib/join.h
index 62e4c98de7f..bb011f7db79 100644
--- a/Objects/stringlib/join.h
+++ b/Objects/stringlib/join.h
@@ -32,7 +32,7 @@ STRINGLIB(bytes_join)(PyObject *sep, PyObject *iterable)
Py_DECREF(seq);
return STRINGLIB_NEW(NULL, 0);
}
-#ifndef STRINGLIB_MUTABLE
+#if !STRINGLIB_MUTABLE
if (seqlen == 1) {
item = PySequence_Fast_GET_ITEM(seq, 0);
if (STRINGLIB_CHECK_EXACT(item)) {