Debian Codegraph @

src/include/glibc/stdlib.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 /* Force glibc's stdlib.h to leave strtol/strtoul/strtoll/strtoull as their original GLIBC_2.2.5
5 * symbols rather than redirect to __isoc23_* (GLIBC_2.38). The only behavioural difference is
6 * "0b" prefix support in base 0/2 parsing, which we don't use.
7 *
8 * The macro was named __GLIBC_USE_C2X_STRTOL on glibc 2.38–2.39 and renamed to the C23 spelling
9 * in glibc 2.40; clear both so this override works across that range. */
10
11 #include <features.h>
12 #undef __GLIBC_USE_C2X_STRTOL
13 #define __GLIBC_USE_C2X_STRTOL 0
14 #undef __GLIBC_USE_C23_STRTOL
15 #define __GLIBC_USE_C23_STRTOL 0
16
17 #include_next <stdlib.h> /* IWYU pragma: export */