aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6
diff options
context:
space:
mode:
authorArseniy Antonov <arseniy.antonov@intel.com>2014-04-29 16:21:05 +0400
committerArseniy Antonov <arseniy.antonov@intel.com>2014-04-29 16:21:05 +0400
commit34a71a4827b13cf1b7a7e6a65a1e4fa9837c1637 (patch)
tree655afcda6ade79bbb1ced288df44e53b3f50e911 /gcc-4.6
parent16712a032061c7f8e9647004a10f8af866e57719 (diff)
downloadtoolchain_gcc-34a71a4827b13cf1b7a7e6a65a1e4fa9837c1637.zip
toolchain_gcc-34a71a4827b13cf1b7a7e6a65a1e4fa9837c1637.tar.gz
toolchain_gcc-34a71a4827b13cf1b7a7e6a65a1e4fa9837c1637.tar.bz2
[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>
Diffstat (limited to 'gcc-4.6')
-rw-r--r--gcc-4.6/libstdc++-v3/config/os/bionic/ctype_base.h14
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 926b233..64a3bc5 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