From: François Dumont Date: Thu, 12 Dec 2019 07:14:55 +0000 (+0000) Subject: libstdc++: Qualify isdigit call to fix versioned namespace build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bc1995989018df93c5cdb99179f732b9d511e0c;p=gcc.git libstdc++: Qualify isdigit call to fix versioned namespace build. * src/c++11/random.cc: Include . (random_devise::_M_init_pretr1): Qualify isdigit call. From-SVN: r279271 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6bcdb4895d0..e7639cdadcd 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-12-12 François Dumont + + * src/c++11/random.cc: Include . + (random_devise::_M_init_pretr1): Qualify isdigit call. + 2019-12-10 Thomas Rodgers * include/pstl/glue_numeric_defs.h: Restore enable_if lost during diff --git a/libstdc++-v3/src/c++11/random.cc b/libstdc++-v3/src/c++11/random.cc index 10fbe1dc4c4..04edc582b69 100644 --- a/libstdc++-v3/src/c++11/random.cc +++ b/libstdc++-v3/src/c++11/random.cc @@ -41,6 +41,7 @@ #include #include +#include // For std::isdigit. #if defined _GLIBCXX_HAVE_UNISTD_H && defined _GLIBCXX_HAVE_FCNTL_H # include @@ -286,7 +287,7 @@ namespace std _GLIBCXX_VISIBILITY(default) _M_mt.seed(seed); #else // Convert old default token "mt19937" or numeric seed tokens to "default". - if (token == "mt19937" || isdigit((unsigned char)token[0])) + if (token == "mt19937" || std::isdigit((unsigned char)token[0])) _M_init("default"); else _M_init(token);