From 097f74a5a37e2a8a26d529cede456ede7011b66f Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 7 Feb 2022 01:26:58 +0100 Subject: 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. --- Objects/bytearrayobject.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Objects/bytearrayobject.c') diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index a600985422..8fce83dbfb 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -1074,6 +1074,7 @@ bytearray_dealloc(PyByteArrayObject *self) /* -------------------------------------------------------------------- */ /* Methods */ +#define STRINGLIB_IS_UNICODE 0 #define FASTSEARCH fastsearch #define STRINGLIB(F) stringlib_##F #define STRINGLIB_CHAR char -- cgit v1.2.1