HALF ECHO LEARN / REFERENCE COLLECTION
v262.2src/include/glibc/stdlib.h
Git blob: a3ad2a3b5ab9a689b106955aa8e7b4d66c2a3fe3
Lines 1–18 of 18
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
/* Force glibc's stdlib.h to leave strtol/strtoul/strtoll/strtoull as their original GLIBC_2.2.5
* symbols rather than redirect to __isoc23_* (GLIBC_2.38). The only behavioural difference is
* "0b" prefix support in base 0/2 parsing, which we don't use.
*
* The macro was named __GLIBC_USE_C2X_STRTOL on glibc 2.38–2.39 and renamed to the C23 spelling
* in glibc 2.40; clear both so this override works across that range. */
#include <features.h>
#undef __GLIBC_USE_C2X_STRTOL
#define __GLIBC_USE_C2X_STRTOL 0
#undef __GLIBC_USE_C23_STRTOL
#define __GLIBC_USE_C23_STRTOL 0
#include_next <stdlib.h> /* IWYU pragma: export */