diff options
author | Arseniy Antonov <arseniy.antonov@intel.com> | 2014-04-29 16:21:05 +0400 |
---|---|---|
committer | Arseniy Antonov <arseniy.antonov@intel.com> | 2014-04-29 16:21:05 +0400 |
commit | 34a71a4827b13cf1b7a7e6a65a1e4fa9837c1637 (patch) | |
tree | 655afcda6ade79bbb1ced288df44e53b3f50e911 | |
parent | 16712a032061c7f8e9647004a10f8af866e57719 (diff) | |
download | toolchain_gcc-34a71a4827b13cf1b7a7e6a65a1e4fa9837c1637.tar.gz toolchain_gcc-34a71a4827b13cf1b7a7e6a65a1e4fa9837c1637.tar.bz2 toolchain_gcc-34a71a4827b13cf1b7a7e6a65a1e4fa9837c1637.zip |
[4.6] Fix missing _U, _L, etc
Since 5e9b20f7212c23110693a4bd1f122ccac3fece80 bionic
rename _U to _CTYPE_U, etc. Detect the presence of _U
and define it to _CTYPE_U in case new bionic headers are
in used
See a1d2625be0186dc4970774bced8787f3f5f234bf
Change-Id: I484bc8801d07938df41d0afeb64971a5e38c5c65
Signed-off-by: Arseniy Antonov <arseniy.antonov@intel.com>
-rw-r--r-- | gcc-4.6/libstdc++-v3/config/os/bionic/ctype_base.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.6/libstdc++-v3/config/os/bionic/ctype_base.h b/gcc-4.6/libstdc++-v3/config/os/bionic/ctype_base.h index 926b23374..64a3bc58c 100644 --- a/gcc-4.6/libstdc++-v3/config/os/bionic/ctype_base.h +++ b/gcc-4.6/libstdc++-v3/config/os/bionic/ctype_base.h @@ -30,6 +30,20 @@ // Support for Solaris 2.5.1 +#if !defined(_U) +#if !defined(_CTYPE_U) +#error Bionic header ctype.h does not define either _U nor _CTYPE_U +#endif +#define _U _CTYPE_U +#define _L _CTYPE_L +#define _N _CTYPE_N +#define _S _CTYPE_S +#define _P _CTYPE_P +#define _C _CTYPE_C +#define _X _CTYPE_X +#define _B _CTYPE_B +#endif + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION |