summaryrefslogtreecommitdiff
path: root/gnu/gcc
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2024-02-04 13:03:27 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2024-02-04 13:03:27 +0000
commit4ccfff4cea7d7303a8b182fad5def2785448dfe8 (patch)
treeb0daf0dc79bcd5819ce0525417d54b8ee4aeaa86 /gnu/gcc
parent7aed1b3e7b8bbcaae813e0558883199f4b353996 (diff)
Adapt base libstdc++ to the new ctype.h defines
ctype_base.h is correctly installed by make includes so the transition should be automatic. If you hit a failure with this header, make sure ctype.h and ctype_base.h are in sync. ok miod@ tb@
Diffstat (limited to 'gnu/gcc')
-rw-r--r--gnu/gcc/libstdc++-v3/config/os/bsd/openbsd/ctype_base.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/gnu/gcc/libstdc++-v3/config/os/bsd/openbsd/ctype_base.h b/gnu/gcc/libstdc++-v3/config/os/bsd/openbsd/ctype_base.h
index e2d26707f08..254abd5b3d6 100644
--- a/gnu/gcc/libstdc++-v3/config/os/bsd/openbsd/ctype_base.h
+++ b/gnu/gcc/libstdc++-v3/config/os/bsd/openbsd/ctype_base.h
@@ -46,17 +46,17 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// NB: Offsets into ctype<char>::_M_table force a particular size
// on the mask type. Because of this, we don't use an enum.
typedef char mask;
- static const mask upper = _U;
- static const mask lower = _L;
- static const mask alpha = _U | _L;
- static const mask digit = _N;
- static const mask xdigit = _N | _X;
- static const mask space = _S;
- static const mask print = char(_P | _U | _L | _N | _B);
- static const mask graph = _P | _U | _L | _N;
- static const mask cntrl = _C;
- static const mask punct = _P;
- static const mask alnum = _U | _L | _N;
+ static const mask upper = _CTYPE_U;
+ static const mask lower = _CTYPE_L;
+ static const mask alpha = _CTYPE_U | _CTYPE_L;
+ static const mask digit = _CTYPE_N;
+ static const mask xdigit = _CTYPE_N | _CTYPE_X;
+ static const mask space = _CTYPE_S;
+ static const mask print = char(_CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_N | _CTYPE_B);
+ static const mask graph = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_N;
+ static const mask cntrl = _CTYPE_C;
+ static const mask punct = _CTYPE_P;
+ static const mask alnum = _CTYPE_U | _CTYPE_L | _CTYPE_N;
};
_GLIBCXX_END_NAMESPACE