aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-03-24 17:52:55 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-03-24 17:52:55 +0800
commita1d2625be0186dc4970774bced8787f3f5f234bf (patch)
tree44efc616d09eb8687a9ab609887103c173bc8b1b /gcc-4.8
parent283a0bf58fcf333c58a2a92c3ebbc41fb9eb1fdb (diff)
downloadtoolchain_gcc-a1d2625be0186dc4970774bced8787f3f5f234bf.tar.gz
toolchain_gcc-a1d2625be0186dc4970774bced8787f3f5f234bf.tar.bz2
toolchain_gcc-a1d2625be0186dc4970774bced8787f3f5f234bf.zip
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 Change-Id: I7df4792ad6fa1487d91de7f337bff489f6d3ade0
Diffstat (limited to 'gcc-4.8')
-rw-r--r--gcc-4.8/libstdc++-v3/config/os/bionic/ctype_base.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.8/libstdc++-v3/config/os/bionic/ctype_base.h b/gcc-4.8/libstdc++-v3/config/os/bionic/ctype_base.h
index 2cfd69e9d..d33e9f69b 100644
--- a/gcc-4.8/libstdc++-v3/config/os/bionic/ctype_base.h
+++ b/gcc-4.8/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